Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
应用推荐