3 ms·
Reminder that on Linux multiprocessing is broken out of the box, and you need to configure it to not freeze your process at random: https://pythonspeed.com/arti
by itamarst 3y ago
Reminder that on Linux multiprocessing is broken out of the box, and you need to configure it to not freeze your process at random: https://pythonspeed.com/articles/python-multiprocessing/ https://pythonspeed.com/articles/python-multiprocessing/
(This will be fixed in future Python versions, 3.14 maybe.)
- ptx 3y agoTLDR: If you fork the process after starting threads you're gonna have a bad time, so use spawn instead of fork, like this: from multiprocessing import set_start_method set_start_method("spawn")
- deleted 3y ago[deleted]
- paulddraper 3y agoIf I understand correctly, this is about combining multiprocessing and multithreading?