thread-compatible 中文意思是什麼
thread-compatible
解釋
線程兼容的- thread : n 1 線;細絲;〈英國〉麻紗,〈美國〉棉紗;纖維。2 細線,細流,細礦脈。3 (議論等的)思路,條理,...
- compatible : adj. 1. 協調的,相容的,可兩立的,不矛盾的 (with)。2. 【計算機】兼容的。
-
Many common classes are thread - compatible, such as the collection classes
許多常見的類是線程兼容的,如集合類 -
Doing so will enable thread - compatible objects held as instance variables in other thread - safe objects to piggyback on the synchronization of the owning object
這樣做會使線程兼容的對象作為變量實例包含在其他線程安全的對象中,從而可以利用其所有者對象的同步。 -
Thread - compatible classes are not thread - safe, but can be used safely in concurrent environments by using synchronization appropriately
線程兼容類不是線程安全的,但是可以通過正確使用同步而在並發環境中安全地使用。 -
Synchronized block. to maximize the usefulness of thread - compatible classes, they should not require that callers synchronize on a specific lock, just that the same lock is used in all invocations
為了最大程度地利用線程兼容類,如果所有調用都使用同一個塊,那麼就不應該要求調用者對該塊同步。 -
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
通過將類記錄為線程兼容或者有條件線程安全的,您就告知了用戶這個類可以通過正確使用同步而安全地在多線程中使用。
分享友人