What is the translation of " MUTEX " in English?

Noun
mutex
一个mutex
互斥
一个互斥锁

Examples of using Mutex in Chinese and their translations into English

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
反之应该使用mutex
To use a mutex.
Mutex类是不可复制的。
A Mutex is NonCopyable.
将尝试打开3个Mutex.
Tries to open a Mutex.
Mutex类是不可复制的。
The mutex class is non-copyable.
反之应该使用mutex
It is better to utilize a mutex.
mutex就没有这些功能。
But in mutex, there is no such function.
你可以确定持有mutexA的线程:.
You can determine which thread is holding mutex A:.
Mutex和semaphore有什么区别?
What is the difference between mutex and semaphore.
为此,我们可以使用Mutex<T>类型。!
For that, we can use the Mutex<T> type!
Mutex和semaphore有什么区别??
What are the differences between Mutex& Semaphore?
那什么时候该使用Semaphore,什么时候使用Mutex??
When to use mutex and when to use semaphore?
Mutex数据类型有两个方法,Lock和Unlock。
A mutex contains two functions, lock and unlock.
Linux-什么时候应该使用mutex,什么时候应该使用semaphore?
When to use mutex and when to use semaphore?
同理,Mutex<T>也有造成死锁(deadlock)的风险。
Similarly, Mutex<T> comes the risk of deadlocks.
死锁使用std::mutex来保护多线程中的cout.
Deadlock using std::mutex to protect cout in multiple threads.
用一个例子来做总结,首先展示如何使用mutex:.
To summarize with an example, here's how to use a mutex:.
调用方线程在调用lock或try_lock前必须不占有mutex
A calling thread must not own the mutex prior to calling lock or try_lock.
现在让我们尝试使用Mutex<T>在多个线程间共享值。
Let's now try toshare a value between multiple threads using Mutex<T>
为什么pthread_cond_wait需要传递mutex参数?
Why does the pthread_cond_wait() call need to know about the mutex?
为了新建一个互斥锁,你声明并初始化一个pthread_mutex_t的结构。
To create the mutex lock, you declare and initialize a pthread_mutex_t structure.
Pthread_cond_wait为什么需要传递mutex参数??
Why does the pthread_cond_wait() call need to know about the mutex?
同时,它也可以分析和显示用户级锁(读/写和mutex)的竞争。
It can also analyze anddisplay contentions of user-level locks(read/write and mutexes).
请注意,pthread_mutex_destroy()不会释放用来存储pthread_mutex_t的内存。
Pthread_mutex_destroy() does notfree the memory used to store the pthread_mutex_t.
这里创建了一个counter变量来存放内含i32的Mutex<T>,类似示例16-12那样。
We create a counter variable to hold an i32 inside a Mutex<T>, as we did in Listing 16-12.
将示例16-14中的Mutex<T>封装进Rc<T>中并在将所有权移入线程之前克隆了Rc<T>。
We will wrap the Mutex<T> in Rc<T> in Listing 16-14 and clone the Rc<T> before moving ownership to the thread.
另一个值得注意的细节是Rust不能避免使用Mutex<T>的全部逻辑错误。
Another thing to note is that Rust can't prevent us from allkinds of logic errors when using Mutex<T>
为了锁住和解锁一个互斥锁,你可以使用pthread_mutex_lock和pthread_mutex_unlock函数。
To lock and unlock the mutex lock, you use the pthread_mutex_lock and pthread_mutex_unlock functions.
然后你有常规的并发原语,像mutex,读写锁,条件变量等。
And then you have the usual palette of concurrency primitives like mutexes, read write locks, condition variables and the like.
另一个值得注意的细节是Rust不能避免使用Mutex<T>的全部逻辑错误。
Another detail to note is that Rust can't protect you from allkinds of logic errors when you use Mutex<T>
Results: 29, Time: 0.0171

Top dictionary queries

Chinese - English