Home
Sign Up
Sign In
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
concurrent.futures 多进程/多线程之间,子程如何动态与主线协调变量数值?
pppguest3962
·
Aug 14, 2020
· 2809 views
This topic created in 2258 days ago, the information mentioned may be changed or developed.
创建了 3 个 ProcessPoolExecutor,每个进程池里面的 task 都是分批次逐个提交的,task 起始进度不同,
各个池里面所有的任务,需要在运行过程之中需要读取、修改主线创建的一个字典里面的键值对,
是否能够实现?
task
键值
主线
创建
2 replies
•
2020-08-15 02:47:18 +08:00
1
lxyu
Aug 14, 2020
https://stackoverflow.com/questions/6832554/multiprocessing-how-do-i-share-a-dict-among-multiple-processes
2
jones2000
Aug 15, 2020
1
1.内存共享
2.命名管道
3.socket 通讯
4.统一用数据库(mysql ,redis...) 读 /写获取
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
6022 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms ·
UTC 02:36
·
PVG 10:36
·
LAX 19:36
·
JFK 22:36
♥ Do have faith in what you're doing.
❯