3 ms·
This post contradicts what is exposed in other manuals : event-driven is not concurrency. It is not clear if threads can interact in the event-drive model, this
by scriptproof 14y ago
This post contradicts what is exposed in other manuals : event-driven is not concurrency. It is not clear if threads can interact in the event-drive model, this could be chaotic.
- tferris 14y agoNo, you are right, the post needs some clarification there and thanks for the feedback (I am correcting it). The event loop is no real concurrency but Node's child processes and cluster enable real (multithreaded) concurrency. The event loop is a lean instrument enabling asynchrony within a single thread with minimum overhead leading to some kind of concurrency—or something which is non-blocking and feels "concurrent" for Node and its entire ecosystem—and paired with child processes and cluster you have real concurrency. If you use child processes then interaction between processes (employing different threads) is easy. With cluster you have to setup some communication between nodes.