chapter14: threading

Lock and RLock