When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Singleton pattern - Wikipedia

    en.wikipedia.org/wiki/Singleton_pattern

    Complete article "Java Singleton Pattern Explained" Four different ways to implement singleton in Java "Ways to implement singleton in Java" Book extract: Implementing the Singleton Pattern in C# by Jon Skeet; Singleton at Microsoft patterns & practices Developer Center; IBM article "Double-checked locking and the Singleton pattern" by Peter Haggar

  3. Initialization-on-demand holder idiom - Wikipedia

    en.wikipedia.org/wiki/Initialization-on-demand...

    In software engineering, the initialization-on-demand holder (design pattern) idiom is a lazy-loaded singleton. In all versions of Java, the idiom enables a safe, highly concurrent lazy initialization of static fields with good performance. [1] [2]

  4. Double-checked locking - Wikipedia

    en.wikipedia.org/wiki/Double-checked_locking

    In software engineering, double-checked locking (also known as "double-checked locking optimization" [1]) is a software design pattern used to reduce the overhead of acquiring a lock by testing the locking criterion (the "lock hint") before acquiring the lock.

  5. Lock (computer science) - Wikipedia

    en.wikipedia.org/wiki/Lock_(computer_science)

    Java provides the keyword synchronized to lock code blocks, methods or objects [11] and libraries featuring concurrency-safe data structures. Objective-C provides the keyword @synchronized [ 12 ] to put locks on blocks of code and also provides the classes NSLock, [ 13 ] NSRecursiveLock, [ 14 ] and NSConditionLock [ 15 ] along with the ...

  6. Java concurrency - Wikipedia

    en.wikipedia.org/wiki/Java_concurrency

    Synchronization has several aspects. The most well-understood is mutual exclusion—only one thread can hold a monitor at once, so synchronizing on a monitor means that once one thread enters a synchronized block protected by a monitor, no other thread can enter a block protected by that monitor until the first thread exits the synchronized block.

  7. Talk:Singleton pattern - Wikipedia

    en.wikipedia.org/wiki/Talk:Singleton_pattern

    See Singleton pattern. A singleton is also a variable that is only used once in a program, usually indicating a programming mistake. See singleton variable. From the start of the term 'Singleton pattern': In software engineering, the singleton design pattern is designed to restrict instantiation of a class to one (or a few) objects.

  8. Software design pattern - Wikipedia

    en.wikipedia.org/wiki/Software_design_pattern

    Software design patterns offer finer granularity compared to software architecture patterns and software architecture styles, as design patterns focus on solving detailed, low-level design problems within individual components or subsystems. Examples include Singleton, Factory Method, and Observer. [35] [36] [37]

  9. Ticket lock - Wikipedia

    en.wikipedia.org/wiki/Ticket_lock

    In computer science, a ticket lock is a synchronization mechanism, or locking algorithm, that is a type of spinlock that uses "tickets" to control which thread of execution is allowed to enter a critical section.