3 ms·
Concurrency is the property that two or more tasks may be interleaved, instead of requiring one task to complete before another begins. Thus async I/O would onl
by Arnavion 11y ago
Concurrency is the property that two or more tasks may be interleaved, instead of requiring one task to complete before another begins. Thus async I/O would only be distinguishable from sync I/O if there were concurrency, i.e., another task can run while the first task is waiting for the completion of that async I/O.
What you're talking about is parallelism, which is the property that more than one task may execute at the same time. That is what Web Workers achieve.
- notduncansmith 11y agoTalk by Rob Pike explaining the difference: http://youtu.be/cN_DpYBzKso http://youtu.be/cN_DpYBzKso