Coroutines and Concurrency
Explore the concepts of concurrency and parallelism in Kotlin programming through coroutines. Understand how coroutines function as cooperating tasks that maintain state and enable efficient asynchronous processing while differentiating between concurrent and parallel execution methods.
We'll cover the following...
Some tasks have to be executed sequentially, some may be performed in parallel, and yet others may be done concurrently. Most people put on the underwear before putting on the pants, though the order may be in reverse—even then, superwoman and superman don’t put them on at the same time. These two tasks are inherently sequential; don’t attempt an alternative.
Sequential execution is clear; we perform one task to completion before beginning the next. But some confusion exists among ...