mutex

mutex

 英

  • 網絡互斥量;互斥體;互斥鎖

例句

The slot's connection is checked to see if it is blocked or disconnected, and then the connection's mutex is unlocked.

插槽連接檢查是否阻塞斷開然后連接互斥

The name of the system mutex whose access control security rules are to be retrieved.

檢索訪問控制安全性規則系統mutex名稱

Then, when a thread is ready to terminate, it locks the mutex, decrements threadcount, and unlocks the mutex.

一個線程準備終止再次鎖定互斥threadcount然后互斥

The code between the lock and unlock calls to the mutex, is referred to as the critical section.

打開關閉互斥調用之間代碼稱為臨界

Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked.

因此最后兩個線程等待條件變量互斥沒有

If the calling thread has no ownership of this mutex, this function fails.

如果調用線程并不擁有這個互斥信號那么這個函數執行失敗

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接受一個指針作為參數初始化為互斥對象指針指向一塊分配內存

Mutual exclusion (most often referred to as mutex) allows the programmer to "attach" locks to resources.

互斥通常稱為mutex允許編程人員資源上鎖

A mutex provides exclusive access control for a resource between threads, as shown in.

互斥提供線程資源獨占訪問控制

It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread.

允許原子atomically解除互斥鎖定等待條件變量而不會干涉其他線程可能

The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.

隊列構造函數函數負責創建銷毀互斥清單1。

Mutex objects are synchronization objects that can be owned by only a single thread at a time.

Mutex對象一次只能線程擁有同步對象

It is a simple lock with only the thread that owns the lock being able to release the mutex.

一個簡單只有持有線程可以釋放那個互斥

This function gets a pointer to the mutex it is trying to lock.

這個函數獲得一個指向正在嘗試鎖定互斥指針

Class with the specified sections of the access control security rules from the system mutex with the specified name.

使用來自具有指定名稱系統mutex訪問控制安全性規則指定部分初始

A thread holding a mutex can be de-scheduled, perhaps because it was the end of its time-slice.

可能因為分配時間結束持有互斥線程取消調度

The mutex API provides five functions: three are used for locking, one for unlocking, and another for testing a mutex.

互斥API提供了5函數其中3用于鎖定一個用于另一個用于測試互斥

A process can specify the name of a mutex object in a call to the OpenMutex or CreateMutex function.

進程可以OpenMutex函數CreateMutex函數指定互斥對象名稱

Clearly, pushing data into the queue is akin to appending data to the list, and this operation must be guarded by mutex locks.

顯然數據隊列數據添加列表必須使用互斥保護這個操作

A far better approach would be to define another method that accepts a list of integers and acquire and release the mutex only once.

更好做法定義另一個方法接收一系列整數獲取釋放互斥一次

The state of a mutex object is signaled when it is not owned by any thread.

互斥對象屬于任何一個線程互斥狀態狀態

A MutexSecurity object that represents the access control security to be applied to the named system mutex.

一個MutexSecurity對象表示用于命名系統互斥訪問控制安全性

Meanwhile, another handle you forced closed was reused as a mutex handle, which is used to help prevent data from being corrupted.

同時另一個強制關閉重用作為用于幫助防止數據損壞一個互斥

If not awake otherwise, at the end of the timeout, the reader needs to wake itself up and release the mutex.

如果超時時間結束沒有喚醒線程需要喚醒自身釋放互斥

The procedure for creating and using a mutex is a bit more complicated than the procedure for starting a thread.

創建使用互斥過程僅僅開始一個線程過程稍微復雜一些

Finally, you can check the status of a mutex through a call to mutex_is_locked.

最后可以通過調用mutex_is_locked檢查互斥狀態

Buffer acquisition is managed through the use of latches, known as mutex, and lock-access information.

緩沖區獲取通過使用latch訪問信息管理稱作mutex

The example uses the OpenExisting(String) method overload to test for the existence of a named mutex.

示例使用OpenExistingString方法重載測試指定mutex是否存在

It could repeatedly lock and unlock a mutex, each time checking a shared data structure for a certain value.

可以重復互斥對象鎖定和解每次檢查共享數據結構查找某個

We also referenced lists of mutex sample codes to help you when you undertake the migration activity involving Win32 to Linux.

我們引用一系列互斥示例代碼幫助進行Win32Linux遷移行動

Threads request ownership of the mutex object when they require exclusive access to a resource.

線程需要獨占訪問某個資源請求mutex對象所屬

A signal's mutex is automatically locked whenever any of the signal's methods are called.

調用信號任何方法信號互斥都會自動

For similar synchronization between the threads of different processes, use a mutex object.

對于不同進程之間類似線程同步使用互斥對象

The setup for a lock operation involves allocation of a prelocked mutex.

鎖定操作設置涉及分配一個預先鎖定互斥

The display thread must wait for the mutex to be clear before updating the display.

顯示線程更新顯示之前必須等待清除互斥

The name of the system mutex.

系統互斥名稱

Initializer defines shared memory id m_shmid and a semaphore ms_mutex for synchronous event handling.

Initializer定義共享內存idm_shmid一個用來處理同步事件信號量ms_mutex。

To open an existing named mutex with only those permissions needed for synchronizing thread activities, see the OpenExisting method.

若要使用線程活動進行同步權限打開現有命名Mutex請參見OpenExisting方法

To "lock" a mutex means to wait until the mutex is unowned, and then make it owned by the current thread.

鎖定一個互斥意味等待直至互斥變為然后當前線程擁有。”

In order for a task to run under MARS, it must acquire the session mutex.

任務必須獲取會話互斥才能MARS運行

熱門查詢