mutex

  • 网络互斥量;互斥体;互斥锁

mutexmutex

mutex

互斥量

对于互斥量(Mutex),只有拥有它的线程能够调用 ReleaseMutex。对于信号量(Semaphore),每个线程都可以使用 ReleaseSem…

互斥体

图二、应用互斥体Mutex)实现同步不知道从上面的描述,读者有又没有看出互斥体与临界区之间的区别。

互斥锁

互斥锁(mutex)使得某一确定时刻只有一个线程可以访问保护中的数据。◆ 读/写锁◆ 信号灯◆ 线程同步除了需要保护共享数据 …

互斥对象

互斥对象mutex)内核对象能够确保线程拥有对单个资源的互斥访问权。 互斥对象的组成:一个使用数量、一个线程ID(用 …

互斥器

它往往被描述为互斥器mutex)或关键区(critical section)。这就容易产生误解,以为代码被关键词synchronized保护着,因 …

互斥信号量

b. 互斥:互斥信号量Mutex)用来实现对共享资源的保护,当两个以上的任务共享同一块内存缓冲区或同一个I/O设备之类的 …

互斥标记

未分类 - - Nicolas’ Blog - Upholstery ... must 必须 mutex 互斥标记 name 名字 ...

1
The slot's connection is checked to see if it is blocked or disconnected, and then the connection's mutex is unlocked. 插槽的连接被检查,看它是否被阻塞或断开,然后,连接的互斥体被解锁。
2
The name of the system mutex whose access control security rules are to be retrieved. 要检索其访问控制安全性规则的系统mutex的名称。
3
Then, when a thread is ready to terminate, it locks the mutex, decrements threadcount, and unlocks the mutex. 当一个线程准备终止时,它再次锁定互斥量,减量threadcount,然后解锁互斥量。
4
The code between the lock and unlock calls to the mutex, is referred to as the critical section. 在打开和关闭互斥调用之间的代码称为临界域。
5
Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked. 因此,最后两个读线程都等待条件变量,互斥锁没有被锁住。
6
If the calling thread has no ownership of this mutex, this function fails. 如果调用线程并不拥有这个互斥信号量,那么这个函数的执行将会失败。
7
As you can see, pthread_mutex_init accepts a pointer to an already-allocated region of memory to initialize as a mutex. 正如所示,pthread_mutex_init接受一个指针作为参数以初始化为互斥对象,该指针指向一块已分配好的内存区。
8
Mutual exclusion (most often referred to as mutex) allows the programmer to "attach" locks to resources. 互斥(通常被称为mutex)允许编程人员给资源上锁。
9
A mutex provides exclusive access control for a resource between threads, as shown in. 所示,互斥提供线程间资源的独占访问控制。
10
It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread. 它还允许您原子地(atomically)解除互斥的锁定,并等待条件变量,而不会有干涉其他线程的可能。
11
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1. 队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。
12
Mutex objects are synchronization objects that can be owned by only a single thread at a time. Mutex对象是一次只能为一个线程所拥有的同步对象。
13
It is a simple lock with only the thread that owns the lock being able to release the mutex. 它是一个简单的锁,只有持有它的线程才可以释放那个互斥。
14
This function gets a pointer to the mutex it is trying to lock. 这个函数会获得一个指向它正在尝试锁定的互斥的指针。
15
Class with the specified sections of the access control security rules from the system mutex with the specified name. 使用来自具有指定名称的系统mutex的访问控制安全性规则的指定部分初始化。
16
A thread holding a mutex can be de-scheduled, perhaps because it was the end of its time-slice. 可能因为分配的时间片结束,持有互斥锁的线程被取消调度。
17
The mutex API provides five functions: three are used for locking, one for unlocking, and another for testing a mutex. 互斥锁API提供了5个函数:其中3个用于锁定,一个用于解锁,另一个用于测试互斥锁。
18
A process can specify the name of a mutex object in a call to the OpenMutex or CreateMutex function. 进程可以在OpenMutex函数或CreateMutex函数中指定互斥体对象的名称。
19
Clearly, pushing data into the queue is akin to appending data to the list, and this operation must be guarded by mutex locks. 显然,把数据放到队列中就像是把数据添加到列表中,必须使用互斥锁保护这个操作。
20
A far better approach would be to define another method that accepts a list of integers and acquire and release the mutex only once. 更好的做法是定义另一个方法,它接收一系列整数,只获取并释放互斥锁一次。
21
The state of a mutex object is signaled when it is not owned by any thread. 当互斥体对象不属于任何一个线程时,互斥体的状态为受信状态。
22
A MutexSecurity object that represents the access control security to be applied to the named system mutex. 一个MutexSecurity对象,表示应用于已命名的系统互斥体的访问控制安全性。
23
Meanwhile, another handle you forced closed was reused as a mutex handle, which is used to help prevent data from being corrupted. 同时,另一个句柄您强制关闭时重用作为用于帮助防止数据被损坏一个互斥体句柄。
24
If not awake otherwise, at the end of the timeout, the reader needs to wake itself up and release the mutex. 如果到超时时间段结束时还没有被唤醒,读线程需要唤醒自身并释放互斥锁。
25
The procedure for creating and using a mutex is a bit more complicated than the procedure for starting a thread. 创建和使用互斥量的过程比仅仅是开始一个线程的过程要稍微复杂一些。
26
Finally, you can check the status of a mutex through a call to mutex_is_locked. 最后,可以通过调用mutex_is_locked检查互斥锁的状态。
27
Buffer acquisition is managed through the use of latches, known as mutex, and lock-access information. 缓冲区的获取是通过使用锁存器(latch)和锁访问信息来管理的,该锁存器称作mutex。
28
The example uses the OpenExisting(String) method overload to test for the existence of a named mutex. 该示例使用OpenExisting(String)方法重载来测试指定的mutex是否存在。
29
It could repeatedly lock and unlock a mutex, each time checking a shared data structure for a certain value. 它可以重复对互斥对象锁定和解锁,每次都会检查共享数据结构,以查找某个值。
30
We also referenced lists of mutex sample codes to help you when you undertake the migration activity involving Win32 to Linux. 我们还引用了一系列互斥示例代码来帮助您进行从Win32到Linux的迁移行动。