Semid is the semaphore set identifier.
semid是信号量集的标识符。
Semflg are permissions on the new semaphore set.
semflg是这个新信号量集的权限。
Nsems is the number of semaphores in the semaphore set.
nsems是这个信号量集中信号量的数量。
Key should point to the semaphore set key, which you want to open.
key应该指向想要打开的信号量集的key值。
This function returns the semaphore set identifier associated with the argument key.
这个函数返回一个信号量集标识符,它与一个参数的键值关联在一起。
The key is a unique identifier that is used by different processes to identify this semaphore set.
key是一个惟一的标识符,不同的进程使用它来标识这个信号量集。
Args are the values to be updated in the semaphore set data structure through this IPC_SET (explained in the sample).
args是这个信号量集数据结构中要通过IPC_SET来更新的值(在这个例子中会有解释)。
With a semaphore, we create a semaphore set consisting of a single member and initialize the semaphore's value to 1.
我们使用信号量时,创建只包含一个成员的信号量的同时,将信号量的值初始化为1。
The semflg value is set while creation is verified for the access permissions before returning semaphore set identifier.
semflg值是在返回信号量集标识符之前对访问权限进行验证时设置的。
The effective user ID of the calling process must be that of the super-user or match the creator or owner of the semaphore set.
调用进程的有效用户ID必须是超级用户,或者可以与该信号量集的创建者或所有者匹配的用户。
This paper analyses and reviews the basis design ideas, functions, implementation, and specialities of UNIX S-5 semaphore set mechanism.
本文分析评述UNIX S-5信号灯集机构的基本设计思想、功能、实施要点和特点。
This command immediately removes the semaphore set and its data structures, awakening all waiting processes (with an error return and errno set to EIDRM).
这个命令将立即删除信号量集及其数据结构,并唤醒所有正在等待的进程(如果发生错误,则返回,并将errno设置为EIDRM)。
After using the Shared resource, the semaphore count can be set to 1 by using semop .
在使用完共享资源之后,可以使用semop将信号量计数设置为1。
In order to initialize the semaphore-set data structure, use the semctl system call with the IPC_SET command.
为了对信号量集数据结构进行初始化,可以使用IPC_SET命令来调用semctl系统调用。
The semaphore cannot be set again.
无法再设置信号灯。
The semaphore is set and cannot be closed.
已设置信号灯,无法关闭。
The semaphore is set and cannot be closed.
已设置信号灯,无法关闭。
应用推荐