1:基于线程的并行
threading.
active_count
Thread
enumerate()
threading.
current_thread
Thread
threading
threading.
excepthook
Thread.run()
threading.
get_ident
threading.
get_native_id
threading.
enumerate
Thread
current_thread(
threading.
main_thread
Thread
threading.
settrace
threading
run()
sys.settrace() 性能测试使用使用
threading.
setprofile
threading
run()
sys.setprofile()
threading.
stack_size
RuntimeError
ValueError
threading.
TIMEOUT_MAX
Lock.acquire()
RLock.acquire()
Condition.wait()
OverflowError