When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Java concurrency - Wikipedia

    en.wikipedia.org/wiki/Java_concurrency

    Java concurrency. The Java programming language and the Java virtual machine (JVM) is designed to support concurrent programming. All execution takes place in the context of threads. Objects and resources can be accessed by many separate threads. Each thread has its own path of execution, but can potentially access any object in the program.

  3. Thread safety - Wikipedia

    en.wikipedia.org/wiki/Thread_safety

    Thread safe, MT-safe: Use a mutex for every single resource to guarantee the thread to be free of race conditions when those resources are accessed by multiple threads simultaneously. Thread safety guarantees usually also include design steps to prevent or limit the risk of different forms of deadlocks, as well as optimizations to maximize ...

  4. Lock (computer science) - Wikipedia

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

    Lock (computer science) In computer science, a lock or mutex (from mutual exclusion) is a synchronization primitive that prevents state from being modified or accessed by multiple threads of execution at once. Locks enforce mutual exclusion concurrency control policies, and with a variety of possible methods there exist multiple unique ...

  5. 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. Locking occurs only if the locking criterion check indicates that locking is required ...

  6. Critical section - Wikipedia

    en.wikipedia.org/wiki/Critical_section

    Critical section. In concurrent programming, concurrent accesses to shared resources can lead to unexpected or erroneous behavior. Thus, the parts of the program where the shared resource is accessed need to be protected in ways that avoid the concurrent access. One way to do so is known as a critical section or critical region.

  7. Monitor (synchronization) - Wikipedia

    en.wikipedia.org/wiki/Monitor_(synchronization)

    Monitor (synchronization) In concurrent programming, a monitor is a synchronization construct that prevents threads from concurrently accessing a shared object's state and allows them to wait for the state to change. They provide a mechanism for threads to temporarily give up exclusive access in order to wait for some condition to be met ...

  8. Singleton pattern - Wikipedia

    en.wikipedia.org/wiki/Singleton_pattern

    A class diagram exemplifying the singleton pattern. In Object-oriented programming, the singleton pattern is a software design pattern that restricts the instantiation of a class to a singular instance. One of the well-known "Gang of Four" design patterns, which describes how to solve recurring problems in object-oriented software. [ 1 ]

  9. Spinlock - Wikipedia

    en.wikipedia.org/wiki/Spinlock

    Spinlock. In software engineering, a spinlock is a lock that causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking whether the lock is available. Since the thread remains active but is not performing a useful task, the use of such a lock is a kind of busy waiting. Once acquired, spinlocks will usually ...