3 ms·
Why this being downvoted: You need to use a process pool in Python, thread pools are for I/O bound tasks and cannot use more than 1 core.
by vazamb 6y ago
Why this being downvoted:
You need to use a process pool in Python, thread pools are for I/O bound tasks and cannot use more than 1 core.
- nemothekid 6y agoI didn't downvote him, but his response isn't at all relevant to what was being discussed. I was discussing the API design of asyncio and how they had to add the "loop" parameter to ensure the reactor would be thread safe by default.