Even loop is not concurrency.
Just because concurrency and parallelism are different does not meant that concurrency and event loops are the same.
Just because concurrency and parallelism are different does not meant that concurrency and event loops are the same.
"order-independent components", which makes sense for the Event loop.
For example, I can say that when a task executes on an event loop, no other tasks are executing concurrently to it because the event loop executes tasks sequentially.
for (let blah of things)
foo(blah);
In an event loop, if things has a lot of stuff in it, this can block the event loop. Other things in the event loop won't be able to run until this completes.With threads, this just works.
Concurrency: two functions can run one after the other while they are non blocking for the callers (e.g. hyperthreading).
Parallelism: two functions can run at the same time (e.g. multiple processors).
The term "concurrency" subsumes both event loop style concurrency and two-cores-running-code-at-the-same time concurrency.