線程安全性 的英文怎麼說
中文拼音 [xiànchéngānquánxìng]
線程安全性
英文
thread safety- 線 : 名詞1 (用絲、棉、金屬等製成的細長的東西) thread; string; wire 2 [數學] (一個點任意移動所構成的...
- 程 : 名詞1 (規章; 法式) rule; regulation 2 (進度; 程序) order; procedure 3 (路途; 一段路) journe...
- 全 : Ⅰ形容詞1 (完備; 齊全) complete 2 (整個) whole; entire; full; total Ⅱ副詞(完全; 都) entirely...
- 性 : Ⅰ名詞1 (性格) nature; character; disposition 2 (性能; 性質) property; quality 3 (性別) sex ...
-
This idiom derives its thread safety from the fact that operations that are part of class initialization, such as static initializers, are guaranteed to be visible to all threads that use that class, and its lazy initialization from the fact that the inner class is not loaded until some thread references one of its fields or methods
這個idiom由屬于類初始化的操作(如靜態初始化器)保證對使用這個類的所有線程都是可見的這一事實衍生其線程安全性,內部類直到有線程引用其欄位或者方法時才裝載這一事實衍生出遲緩初始化。Object for the duration of the iteration. as the above example shows, thread safety is not all - or - nothing. the methods of
如上面的例子所示,線程安全性不是一個非真即假的命題。No table - wide locking is needed or even possible to provide thread - safety when iterating the collection
在對集合進行迭代時,不需要表范圍的鎖就能提供線程安全性。No widely accepted set of terms is available for the various levels of thread safety that commonly occur in java classes, but it is important that you make some attempt to document the thread - safety behavior of your classes while they are being written
對于java類中常見的線程安全性級別,沒有一種分類系統可被廣泛接受,不過重要的是在編寫類時盡量記錄下它們的線程安全行為。But there are limitations to its thread safety, namely that there are state dependencies between certain pairs of methods
但是它的線程安全性是有限制的,即在某些方法之間有狀態依賴(類似地,如果在迭代過程中Thread - safe and efficient - now you can have both
線程安全性和效率現在您可以兼得Because the reference counting algorithm implicitly serializes operations, a certain amount of thread safety is also lost
由於引用計數演算法對操作進行隱式序列化,因此也會損失一定的線程安全性。Contains a mutable reference to an immutable array, so as long as that reference is held fixed, you get all the thread - safety benefits of immutability without the need for locking
含有對一個不可變數組的一個可變的引用,因此,只要保留好那個引用,您就可以獲得不可變的線程安全性的好處,而且不用鎖定列表。It would be nice if thread safety were a binary attribute of a class, and you could just document whether the class is thread - safe or not
如果線程安全性是類的一個二元屬性就好了,您只需要記錄類是線程安全還是線程不安全的。This thread - safety guarantee is a strong one - many classes, like
這種線程安全性保證是很嚴格的- -許多類,如Bloch outlines a taxonomy that describes five categories of thread safety : immutable, thread - safe, conditionally thread - safe, thread - compatible, and thread - hostile
Bloch給出了描述五類線程安全性的分類方法:不可變、線程安全、有條件線程安全、線程兼容和線程對立。Thread - safe, you perform two valuable services : you inform maintainers of the class that they should not make modifications or extensions that compromise its thread safety, and you inform users of the class that it can be used without external synchronization
線程安全的) ,您就提供了兩種有價值的服務:您告知類的維護者不要進行會影響其線程安全性的修改或者擴展,您還告知類的用戶使用它時可以不使用外部同步。Java theory and practice : characterizing thread safety
Java理論與實踐:描繪線程安全性However, the thread - safety came at a price - all methods of
然而,線程安全性是憑代價換來的All writes to the returned wrapper will be thread safe
對返回的包裝的所有寫入都將具有線程安全性。Otherwise, your program must be sufficiently threadsafe
否則,您的程序就必須提供充足的線程安全性。Characterizing thread safety
描繪線程安全性Indicates that the application requested multithread safety in direct3d
指示應用程序請求了direct3d中的多線程安全性。Defining thread safety
定義線程安全性Each of these five categories of thread safety are described in the following sections
下面幾節分別描述了線程安全性的這五種類別。分享友人