Semid is the semaphore set identifier.
semid是信号量集的标识符。
Use different types of semaphore classes
使用不同类型的信号量类
Semflg are permissions on the new semaphore set.
semflg是这个新信号量集的权限。
Then it atomically decreases the semaphore count.
然后它自动地减少信号的计数值。
If this is null, the semaphore cannot be inherited.
如果这个指针为空,那么这个信号量就不能被继承。
Nsems is the number of semaphores in the semaphore set.
nsems是这个信号量集中信号量的数量。
HSemaphore is a pointer to the handle of the semaphore.
hSemaphore是一个指向信号量句柄的指针。
This wakes up any of the threads blocked on the semaphore.
这会唤醒对这个信号量进行阻塞的所有线程。
The timeout option is not available in the POSIX semaphore.
在POSIX信号中不能使用超时选项。
In Linux, the call sem_init also creates a POSIX semaphore.
在Linux中,sem_init调用会创建一个POSIX信号。
Have an organized approach towards registering semaphore codes?
以有组织的方式登记信号量代码。
Linux POSIX semaphores use sem_post to post an event semaphore.
LinuxPOSIX信号量使用sem_post来发出一个事件信号量。
DwDesiredAccess is the requested access for the semaphore object.
dwDesiredAccess是针对该信号量对象所请求的访问权。
Type of semaphore: Windows provides named and unnamed semaphores.
信号量的类型:Windows提供了有名(named)信号量和无名(unnamed)信号量。
Mutual exclusion can be achieved with the use of a semaphore or mutex.
互斥现象能由使用信号灯或互斥完成。
Type of semaphore: Win32 supports both named and un-named event semaphores.
信号的类型:Win32 既支持有名称的事件信号,也支持无名称的事件信号。
This is used to achieve the functionality of a Windows named semaphore.
可以用它来实现与Windows中有名信号量相同的功能。
Linux POSIX semaphores use sem_destroy to destroy the unnamed semaphore.
LinuxPOSIX信号使用sem_destroy来销毁无名称的信号。
This function creates the semaphore and returns the handle to the semaphore.
这个函数创建信号量,并返回这个信号量的句柄。
Mutexes are available in the kernel as a way to accomplish semaphore behavior.
在内核中可以使用互斥锁来实现信号量行为。
In this example, 430d is the semaphore name, and 58 is the number of timeouts.
在这个例子中,430d是信号量名称,58是超时的数量。
This process also uses Linux completions, which is a semaphore-like operation.
该进程还使用了Linux 的completion,它是像信号一样的操作。
Internally, there is a semaphore protecting each view called the Collection semaphore.
在内部,有一种保护每个视图的信号量,它称为Collection信号量。
BInheritHandle is the flag which controls the inheritance of the semaphore handle.
bInheritHandle是用来控制这个信号量句柄是否可继承的标记。
This function suspends the calling thread until the semaphore has a non-zero count.
这个函数会挂起调用线程,直到这个信号量有一个非空计数为止。
When the count reaches zero, the state of the semaphore object becomes non-signaled.
当计数值成为零时,信号对象的状态成为non - signaled。
This is used by some of the architecture-dependent semaphore functions in the kernel.
这被内核中一些依赖于架构的信号量函数使用。
This function returns the semaphore set identifier associated with the argument key.
这个函数返回一个信号量集标识符,它与一个参数的键值关联在一起。
A semaphore can be owned by setting the initial count of the semaphore to 0 using semctl .
可以通过使用semctl将信号量计数器的初始值设置为0来获得信号量。
Usually, the main use of a semaphore is to synchronize a thread?s action with other threads.
通常,信号的主要用途是同步某个线程与其他线程的动作。
应用推荐