3 ms·
> blocking I/O operations. That also ties up a CPU and blocks the event loop They do block the event loop (if single-threaded) but they do not "tie up" a CPU (
by remram 1y ago
> blocking I/O operations. That also ties up a CPU and blocks the event loop
They do block the event loop (if single-threaded) but they do not "tie up" a CPU (core), the OS will schedule other threads on it.
- binary132 1y agoassuming you have other threads but in an async I/O server scenario, the typical architecture is a fixed-size pool of worker threads, which ideally entirely occupy a single core each. therefore, if one of those threads is blocked, that core is wasted.