[Operating system] Operation System Chapter 9: Synchronization

9.1 Synchronization

Note:
instruction sequences regardless of how multiple threads alternately executed, the program must work properly
-> multithreaded program is uncertain and non-reproducible features
-> not been designed, very difficult to debug
uncertainty require parallel program correctness
-> to think clearly questions the behavior of the program design is clear
-> Do not rush to start writing code, having problems re-commissioning

9.2 some of the concepts
(1) Race condition race condition
system deficiencies: the result depends on the order or events executed concurrently: uncertainty, not reproducible
avoid race: Let instructions is not interrupted

9.3 concepts

To be added complete

References
https://www.bilibili.com/video/av6538245?p=55

Published 29 original articles · won praise 19 · views 4436

Guess you like

Origin blog.csdn.net/iwanderu/article/details/103946424