When a semaphore protects a large amount of data, assuming one or more tasks USES it on a write basis, the semaphore becomes a bottleneck within the system.
在一个信号量保护大量数据时,如果一个或多个任务使用它进行写操作,这个信号量就会成为系统瓶颈。
In order to initialize the semaphore-set data structure, use the semctl system call with the IPC_SET command.
为了对信号量集数据结构进行初始化,可以使用IPC_SET命令来调用semctl系统调用。
应用推荐