Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.64 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.64 KB

实现进程池,线程池,连接池等相关功能

进程池的实现

相关队列和线程处理如图:

process_pool

进程池实现的测试方法
git clone https://github.com/python/cpython.git
cd cpython
git checkout -b dev_2.7 origin/2.7  # 在Python2.7版本下执行
cd Lib
vim ./multiprocessing/process_pool.py
python -m multiprocessing.process_pool multiprocessing/process_pool.py

连接池实现