Each car simply counts up and upon reaching 50, increments the countingsemaphore (once) too.
每辆车只计数到达50,增量计数信号量(一次)。
2
In Part 1 of this series we looked at the history of the binary and countingsemaphore, and then went on to discuss some of the associated problem areas.
在第一部分中,我们回顾了二值信号量与计数信号量的历史,并且讨论了信号量的几个问题。
3
But the focus in this paper is the application of countingsemaphore in VxWorks, which can be used in the Producer_Consumer problem to solve the data synchronism in multi process communication.