3 ms·
I understood that on Linux using a process was similar in speed to a thread, though they're much slower on Windows. Has that changed? For my python multi core
by xioxox 6y ago
I understood that on Linux using a process was similar in speed to a thread, though they're much slower on Windows. Has that changed?
For my python multi core code I like using fork with sending objects over a socket with pickle. It gives more control than multiprocessing.
It works pretty well. One downside of fork with python is that the reference counters are scattered about, leading to big COW memory churn, however. Big numpy arrays should be shared, however.
- BiteCode_dev 6y agoSpwaning the process is not the only problem, communicating between them is also expensive.