2 ms·
TLDR: 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_s
by ptx 3y ago
TLDR: 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]