Skip to content

Commit

Permalink
Revert "Update dont-block-the-event-loop.md (#2479)"
Browse files Browse the repository at this point in the history
This reverts commit 5455032.
  • Loading branch information
XhmikosR authored and phillipj committed Oct 1, 2019
1 parent 822a40e commit ceaa1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale/en/docs/guides/dont-block-the-event-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ A CPU-intensive task only makes progress when its Worker is scheduled, and the W
If you have 4 logical cores and 5 Workers, one of these Workers cannot make progress.
As a result, you are paying overhead (memory and scheduling costs) for this Worker and getting no return for it.

I/O-intensive tasks involve querying an external service provider ([DNS](https://hosting.review/web-hosting-glossary/#9), file system, etc.) and waiting for its response.
I/O-intensive tasks involve querying an external service provider (DNS, file system, etc.) and waiting for its response.
While a Worker with an I/O-intensive task is waiting for its response, it has nothing else to do and can be de-scheduled by the operating system, giving another Worker a chance to submit their request.
Thus, *I/O-intensive tasks will be making progress even while the associated thread is not running*.
External service providers like databases and file systems have been highly optimized to handle many pending requests concurrently.
Expand Down

0 comments on commit ceaa1c0

Please sign in to comment.