条件变量 meaning in English
condition variable
conditional variable
Examples
- This mechanism would require setting up shared memory in which the mutexes and condition variables reside and all processes will have a common reference for these constructs
此机制要求建立共享内存,在其中存放互斥体和条件变量,所有进程都有对这些结构体的共同的引用。 - I ve highlighted those areas where effort needs to be concentrated , areas such as signaling , shared memory , mutexes and condition variables , threading , and architecture - specific changes
我也强调了那些需要集中精力关注的地方,比如信号、共享内存、互斥体和条件变量、线程以及特定于体系结构的变化。 - A program that allows multiple programs to share the same resources but not simultaneously and condition variables are a good choice for implementing the ipc mechanism in a multi - process environment
:允许多个程序共享同一资源但不能同时使用的程序)和条件变量成为在多进程环境中实现ipc机制的合适选择。 - Features like process - shared mutexes are also available on linux , and thus the solaris code related to ipc mechanisms using pthread mutex locks and condition variable can be used on linux
在linux上还可以利用一些新特性,例如进程共享互斥锁,因此solaris中使用pthread互斥锁和条件变量的那些有关ipc机制的代码在linux中都可以使用。 - Shows an example of a bounded buffer implementation using two condition variables , " not full " and " not empty " , which is more readable and efficient than the equivalent implementation with a single wait set per lock . the condition
的javadoc显示了一个有界缓冲区实现的示例,该示例使用了两个条件变量, “ not full ”和“ not empty ” ,它比每个lock只用一个wait设置的实现方式可读性要好一些(而且更有效) 。