ctypes ——针对python的外部函数库
ctypes
threading ---基于线程的并行性
threading
本章中描述的模块为代码的并发执行提供支持。工具的适当选择将取决于要执行的任务(CPU绑定vs IO绑定)和首选的开发风格(事件驱动的协作多任务vs抢占式多任务)。以下是概述:
Semaphore
with
multiprocessing
Process
multiprocessing.sharedctypes
multiprocessing.dummy
multiprocessing.shared_memory
concurrent
concurrent.futures
subprocess
os.system()
os.spawn
os.popen()
os.popen2()
os.popen3()
popen2
sched
queue
以下是一些上述服务的支持模块:
_thread