When the lock is available, it is taken, the mutually-exclusive action is performed, and then the lock is released. 如果锁可用,则获取锁,执行互斥锁动作,然后释放锁。
Achieve Mutual Exclusion in Process Synchronization with Signal Mechanism and PV Operation Line Procedure Mutually-exclusive and Synchronization under Windows 用信号量机制与PV操作解决进程同步互斥问题的方法Windows下的线程互斥和同步