python threading编程中的LOCK和RLOCK(可重入锁)
usr/bin/env python#-*-coding:utf-8-*-import threading import time shared_resource_with_lock=0 shared_resource_with_no_lock=0 COUNT=100000 shared_resource_lock=threading.Lock()class Box(object):lock=threading.RLock()def_...