約1,150件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1年以内
  • 2026/4/9 -No two threads can initialize the same class simultaneously. So you get thread safety for free without writing a single synchronized or volatile keyword. Why ...

    2026/4/28 -Thread Safety Problem with Naive Lazy Initialization. Warning: This implementation is not thread-safe and breaks the Singleton guarantee under concurrent access ...

    3日前 -Separate one-time construction from concurrent state safety, and discuss lazy initialization, atomic operations, volatile, and the effect of shared instances on ...

    ... pattern, which gives us lazy initialization and thread safety without synchronized overhead. Then we'll move to the enum-based Singleton, which is ...

    YouTubeJava Guides

    2026/7/2 -Lazy Initialization (Not Thread-Safe). This approach creates the singleton instance only when it is needed, saving resources if the singleton is never used ...

    2026/10/23 -Lazy or Eager Initialization: An Instance can be created at class load time (eager) or when first needed (lazy). Thread Safety: Can be designed to work ...

    2026/10/28 -We explored how to implement a singleton pattern with lazy loading and thread safety. Then we investigated the singleton bean scope in Spring and explored ...

    2026/10/13 -In all versions of Java, the idiom enables a safe, highly concurrent lazy initialization of static fields with good performance. ... While the implementation is ...

    2026/3/3 -Since the JVM guarantees class loading is thread-safe, this is automatically thread-safe. ... If you don't need lazy initialization, the enum singleton is ...

    2026/2/6 -This approach is thread-safe because the instance is created when the class is loaded, but it doesn't support lazy initialization—the instance is created even ...