高质量的教学和研究并不互斥,但它们也不是“天生一对”。
Good teaching and research are not exclusive, but they are also not automatic companions.
但是还可以动态地创建互斥对象。
可以以两种方式设置互斥的类型。
这个结构可用来设置各种互斥对象属性。
基于互斥锁的方法的问题。
不过,每个条件变量都应该伴有一个互斥。
互斥锁很简单,但是有一些规则必须牢记。
The mutex is simple, but there are some rules you should remember.
这些选项并不是互斥的。
两个线程不能同时对同一个互斥对象加锁。
No two threads can have the same mutex locked at the same time.
为什么要用互斥对象?
还要注意,两个条件变量使用相同的互斥锁。
概览模式和聚焦模式是互斥的。
灾害互斥链是四种灾害链中的一种。
Incompatibl chain of disasters is one of four disaster chains.
任何对一组事件的访问都由一个互斥对象来保护。
Any access to a collection of events is guarded by a mutual exclusion object.
这里是创建互斥的示例代码(见下面的6和7)。
Here's the sample code for creating a mutex (see Listings 6 and 7 below).
表现互斥现象的数据结构,也被当作二元信号灯。
A data structure for mutual exclusion, also known as a binary semaphore.
增强的命令不需要像以前的方法一样使用互斥型锁。
The enhanced commands do not require an exclusive lock like previous methods.
至于浪漫爱情,这是一个几乎互斥的人类经验范畴。
As for romantic love, it was an almost mutually exclusive category of human experience.
然而,如果互斥对象已锁定,这个调用也不会阻塞。
只有能访问源代码的人才可能知道这种互斥的情况。
Only those with access to the source code will know about the mutually exclusive arrangement.
创建成功之后,返回一个互斥对象句柄。
If the function succeeds, the return value is a handle to the mutex object.
未能访问控制台互斥标志。
在进程的生命周期内,可能会经历一系列互斥的状态。
During its lifetime, a process may go through a set of mutually exclusive states.
现在,有两个线程需要使用这两个互斥量。
Now, imagine that two threads want to use them. Thread one does this.
互斥我吧!
那就意味着给请求加一个互斥是无用的开销。
That means that wrapping a mutex around the request is useless overhead.
这样做使增加互斥代码时只需要在一个子程序中进行改动。
This way, the change to add mutex code only has to happen in one place.
在厕所里重要的例子二进制信号量互斥的区别?
Difference between Binary Semaphore and Mutex in the toilet key example?
显示线程在更新显示之前必须等待清除互斥体。
The display thread must wait for the mutex to be clear before updating the display.
如果可能,在设计程序时决不要锁定一个已经锁定的互斥量。
If possible, just design your program never to re-lock a mutex it already has.
应用推荐