A semaphore can be owned by setting the initial count of the semaphore to 0 using semctl .
可以通过使用semctl将信号量计数器的初始值设置为0来获得信号量。
In order to initialize the semaphore-set data structure, use the semctl system call with the IPC_SET command.
为了对信号量集数据结构进行初始化,可以使用IPC_SET命令来调用semctl系统调用。
In order to initialize the semaphore-set data structure, use the semctl system call with the IPC_SET command.
为了对信号量集数据结构进行初始化,可以使用IPC_SET命令来调用semctl系统调用。
应用推荐