© Mohamed Mustapha Tahrioui 2019
M. M. Tahriouiasyncio Recipeshttps://doi.org/10.1007/978-1-4842-4401-2_7

7. Synchronization Between Asyncio Components

Mohamed Mustapha Tahrioui1 
(1)
Darmstadt, Hessen, Germany
 

Asyncio enables us to write cooperative concurrent systems. There are no mechanisms to ensure their correctness in terms of safety and liveness . Safety in this context means to remain in an “intended” state and not divert from it. Liveness in this context means to “make progress,” basically that the intended states of the program are reached.

A program consists of critical and uncritical paths of execution. A critical path is characterized by the access of a shared resource. Synchronization in our context means that we ensure mutually exclusive ...

Get asyncio Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.