遲緩初始化 的英文怎麼說

中文拼音 [chíhuǎnchūshǐhuà]
遲緩初始化 英文
lazy initialization
  • : Ⅰ形容詞1. (緩慢) slow; tardy; dilatory 2. (晚) late; delayed 3. (遲鈍) slow; obtuseⅡ名詞(姓氏) a surname
  • : Ⅰ形容詞1 (遲; 慢) slow; unhurried 2 (緩和; 不緊張) not tense; relaxed Ⅱ動詞1 (延緩; 推遲) d...
  • : Ⅰ名詞1 (開始的部分) at the beginning of; in the early part of 2 (姓氏) a surname Ⅱ助詞(附著...
  • : Ⅰ名詞1 (最初; 起頭) beginning; start 2 (姓氏) a surname Ⅱ動詞(開始) start; begin Ⅲ副詞[書面...
  • 遲緩 : slow; tardy; sluggish
  1. Instead of double - checked locking, use the initialize - on - demand holder class idiom, which provides lazy initialization, is thread - safe, and is faster and less confusing than double - checked locking

    不使用雙重檢查鎖定,而使用initialize - on - demand holder class idiom ,它提供了遲緩初始化,是線程安全的,而且比雙重檢查鎖定更快且沒那麼混亂:
  2. 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由屬于類的操作(如靜態器)保證對使用這個類的所有線程都是可見的這一事實衍生其線程安全性,內部類直到有線程引用其欄位或者方法時才裝載這一事實衍生出遲緩初始化
  3. One of the proposed fixes to the double - checked locking problem was to make the field that holds the lazily initialized instance a volatile field

    對雙重檢查鎖定問題提出的一種修復是使包含遲緩初始化的實例的欄位為一個volatile欄位。
分享友人