Asynchronous Programming — Part 2
6 min readMay 15, 2018
Abstract
In part 1 of this series, we learned about asynchronous programming and programming primitives such as callbacks and futures. Futures/Promises provided way for programmers to share data across threads without worrying about low level thread synchronization primitives.
Task-based parallelism
“Task-based parallelism” refers to a higher level of abstraction, where the programmer manages “tasks” — chunks of work that has to be done, while the library (or language) presents an API to launch these…