条件线程 meaning in English
conditional thread
Examples
- The most common example of conditional thread safety is traversing an iterator returned from
条件线程安全的最常见的例子是遍历由 - Bloch outlines a taxonomy that describes five categories of thread safety : immutable , thread - safe , conditionally thread - safe , thread - compatible , and thread - hostile
Bloch给出了描述五类线程安全性的分类方法:不可变、线程安全、有条件线程安全、线程兼容和线程对立。 - By documenting that a class is thread - compatible or conditionally thread - safe , you inform users that the class can be used safely by multiple threads through the appropriate use of synchronization
通过将类记录为线程兼容或者有条件线程安全的,您就告知了用户这个类可以通过正确使用同步而安全地在多线程中使用。 - If you are documenting a conditionally thread - safe class , you should not only document that it is conditionally thread - safe , but also which sequences of operations must be protected from concurrent access
如果对一个有条件线程安全类进行记录,那么您应该不仅要记录它是有条件线程安全的,而且还要记录必须防止哪些操作序列的并发访问。