高质量的教学和研究并不互斥,但它们也不是“天生一对”。
Good teaching and research are not exclusive, but they are also not automatic companions.
不用害怕,如果您想在互斥以外做一些奇特的事情,比如流处理或延迟呈现,您仍然可以访问原始的mongrel请求。
Fear not, you'll still have access to the raw mongrel request if you want to do fancy stuff like streaming or deferred rendering outside the mutex.
一次只能有一个任务持有互斥锁,并且只有这个任务可以解锁互斥锁。
Only one task may hold the mutex at a time, and only this task can unlock the mutex.
那个错误不是归咎于被锁定的互斥。
但是还可以动态地创建互斥对象。
可以以两种方式设置互斥的类型。
清单3介绍了设置互斥的静态方法。
ABD和MDD并不是互斥的。
互斥现象能由使用信号灯或互斥完成。
Mutual exclusion can be achieved with the use of a semaphore or mutex.
这个结构可用来设置各种互斥对象属性。
当一个互斥锁被锁定后,它必须被解锁。
基于互斥锁的方法的问题。
不过,每个条件变量都应该伴有一个互斥。
hHandle是指向互斥句柄的指针。
互斥锁很简单,但是有一些规则必须牢记。
The mutex is simple, but there are some rules you should remember.
这些选项并不是互斥的。
使用互斥对象能够保证这种情形不会发生。
当互斥被锁定或者发生错误时,函数返回。
The function returns when the mutex is locked, or if an error occurred.
这将创建一个新的互斥锁并初始化其结构。
两个线程不能同时对同一个互斥对象加锁。
No two threads can have the same mutex locked at the same time.
函数会等待互斥被解锁。
为什么要用互斥对象?
还要注意,两个条件变量使用相同的互斥锁。
在内核中可以使用互斥锁来实现信号量行为。
Mutexes are available in the kernel as a way to accomplish semaphore behavior.
锁定操作的设置涉及分配一个预先锁定的互斥锁。
The setup for a lock operation involves allocation of a prelocked mutex.
互斥量对象必须先被声明;声明后还必须初始化。
The mutex object must be declared; once declared, it must be initialized.
这个方法允许您设置互斥信号量对象的相关属性。
增强的命令不需要像以前的方法一样使用互斥型锁。
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.
然而,如果互斥对象已锁定,这个调用也不会阻塞。
应用推荐