Re:Show HN: Bringing multithreading to Python's async event ...
by svieira on Thursday October 03, 2024 @01:13PM
(#41732683)
The difference is that you can spin up only so many OS threads and you can run several orders of magnitude more "green threads" / "tasks" like this that round-robin onto system threads that comprise your event loop executor. The key thing to understand is that `await` doesn't block the backing thread it simply stops the current task (the backing thread moves on to picking up the next ready task from the queue and running the new task to its next await point).
[ Parent
| on HN ]
There are no comments on this comment yet.