Skip to content

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

License

Notifications You must be signed in to change notification settings

lanzhiwang/pool

Repository files navigation

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

进程池的实现

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

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

连接池实现

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published