concept parallel flow control in category node

appears as: parallel flow control
Node.js in Action, Second Edition

This is an excerpt from Manning's book Node.js in Action, Second Edition.

Keeping track of serial and parallel flow control requires programmatic bookkeeping. When you implement serial flow control, you need to keep track of the task currently executing or maintain a queue of unexecuted tasks. When you implement parallel flow control, you need to keep track of how many tasks have executed to completion.

Figure 2.12. Using parallel flow control to implement a frequency count of word use in numerous files