在Linux中,信号量机制是实现并发进程同步、解决互斥的有效方法。文中以Linux2.4版为例,系统地研究了信号和信号量机制,从信号量分类入手详细论述了信号量的数据结构及相关调用,不仅为全面、清晰地研究信号与信号量机制提供了有益的参考,还为进一步应用信号量机制提供了支持。
In Linux, the mechanism of signal quantity is an effective method to realize the synchronism of concomitant process and solve the mutual exclusion. Takes Linux 2.4 edition as an example, systematically researches signal and signal mechanism. Starting with the signal quantity ,discusses in detail data structure of signal quantity and its related transferring. It not only offers significant reference to the overall, clear signal research and the mechanism of signal quantity, but also offers support to the further use of the mechanism of signal quantity.