short sem_op; (semaphore operation)
short sem_op; (信号量操作)
LpName is the name of the semaphore.
lpName是信号量的名称。
Semid is the semaphore set identifier.
semid是信号量集的标识符。
Unsigned short sem_num; (semaphore number).
unsigned short sem_num;(信号量个数)。
Use different types of semaphore classes
使用不同类型的信号量类
A type of semaphore with just two states.
一种只有两种状态的信号。
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.
这会唤醒对这个信号量进行阻塞的所有线程。
Value (semaphore count) is the initial value of the semaphore.
value(信号量计数器)是这个信号量的初始值。
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信号。
It is common for semaphore timeouts to occur on a busy server.
在忙碌的服务器上出现信号量超时是很常见的。
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)信号量。
The 'show stat' command will record semaphore timeout information.
“showstat”命令将报告信号量超时信息。
Initial state: in Win32, the semaphore might have an initial value.
初始状态:在Win32中,信号可能会有初始值。
Avoid using a single semaphore that protects a large amount of data.
避免使用单一信号量保护大量数据。
Mutual exclusion can be achieved with the use of a semaphore or mutex.
互斥现象能由使用信号灯或互斥完成。
A data structure for mutual exclusion, also known as a binary semaphore.
表现互斥现象的数据结构,也被当作二元信号灯。
Note that semaphore timeouts do not always indicate a performance problem.
注意,信号量超时并不一定表示性能问题。
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是超时的数量。
A type of semaphore that is used to track multiple resources of the same type.
一种用来跟踪多个相同类型资源的信号灯。
应用推荐