In Part 1 of this series we looked at the history of the binary and counting semaphore, and then went on to discuss some of the associated problem areas.
在第一部分中,我们回顾了二值信号量与计数信号量的历史,并且讨论了信号量的几个问题。
Hopefully you should now be clear about the core differences between the Binary Semaphore, General (counting) Semaphore and the Mutex.
希望看到这里,你应该对二进制信号量,计数信号量和互斥锁的区别有了清晰的认识。
应用推荐