This is referred to as serializing access to the shared resource.You can think of a mutex as a treasure chest, and the resource it is protecting lies within the chest.
英
美
- 你可以把互斥想作一个宝箱,它保护的资源就是箱中的宝物。