3 ms·
Concurrency is the property of a program to be divided into partially ordered or completely unordered units of execution. It does not describe how you actually
by threatofrain 1y ago
Concurrency is the property of a program to be divided into partially ordered or completely unordered units of execution. It does not describe how you actually end up executing the program in the end, such as if you wish to exploit these properties for parallel execution or task switching. Or maybe you're running on a single thread and not doing any task switching or parallelism.
For more I'd look up Rob Pike's discussions for Go concurrency.
- tines 1y agoThe article understands this.
- threatofrain 1y ago> Concurrency: the ability of a system to progress multiple tasks at a time, be it via parallelism or task switching. Okay, but don't go with this definition.
- michaelsbradley 1y agoIs the hang up on "at a time"? What if that were changed to something like "in a given amount of time"? For single threaded programs, whether it is JS's event loop, or Racket's cooperative threads, or something similar, if Δt is small enough then only one task will be seen to progress.