Transaction and concurrency
Concurrency can be defined as the interleaving of actions in time to give the appearance of simultaneous execution. Concurrency tries to solve several issues, including sharing global resources safely, and handling errors in multiple execution contexts.
Concurrency is pervasive in computing, occurring everywhere from low-level hardware design to worldwide access of shared data. Examples of concurrency handling can be found in instruction pipe lining in CPU micro-architecture and threading in operating system design. Even in our daily lives, we can encounter concurrency when using tools such as Git. A common scenario is when several developers are sharing the same code base, introducing conflicts, and finally resolving ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access