When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. 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 ...

  3. Ctrie - Wikipedia

    en.wikipedia.org/wiki/Ctrie

    A concurrent hash-trie or Ctrie [1] [2] is a concurrent thread-safe lock-free implementation of a hash array mapped trie. It is used to implement the concurrent map abstraction. It has particularly scalable concurrent insert and remove operations and is memory-efficient. [3]

  4. Double-checked locking - Wikipedia

    en.wikipedia.org/wiki/Double-checked_locking

    Thread A notices that the value is not initialized, so it obtains the lock and begins to initialize the value. Due to the semantics of some programming languages, the code generated by the compiler is allowed to update the shared variable to point to a partially constructed object before A has finished performing the initialization.

  5. Non-blocking algorithm - Wikipedia

    en.wikipedia.org/wiki/Non-blocking_algorithm

    In particular, if one thread is suspended, then a lock-free algorithm guarantees that the remaining threads can still make progress. Hence, if two threads can contend for the same mutex lock or spinlock, then the algorithm is not lock-free. (If we suspend one thread that holds the lock, then the second thread will block.)

  6. Monitor (synchronization) - Wikipedia

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

    A condition variable is explicitly 'signalled' when the object's state is modified, temporarily passing the mutex to another thread 'waiting' on the condition variable. Another definition of monitor is a thread-safe class, object, or module that wraps around a mutex in order to safely allow access to a method or variable by more than one thread.

  7. Array Based Queuing Locks - Wikipedia

    en.wikipedia.org/wiki/Array_Based_Queuing_Locks

    The elements of the array are all initialized to 0 except the first element which is takes the value 1, thus ensuring successful lock acquisition by the first thread in the queue. On a lock release, the hold is passed to the next thread in queue by setting the next element of the array to 1. The requests are granted to the threads in FIFO ordering.

  8. Thread-local storage - Wikipedia

    en.wikipedia.org/wiki/Thread-local_storage

    In computer programming, thread-local storage (TLS) is a memory management method that uses static or global memory local to a thread. The concept allows storage of data that appears to be global in a system with separate threads. Many systems impose restrictions on the size of the thread-local memory block, in fact often rather tight limits.

  9. Lazy initialization - Wikipedia

    en.wikipedia.org/wiki/Lazy_initialization

    This example is not thread-safe, see the talk page. ... In the field of theoretical computer science, lazy initialization [4] (also called a lazy array) ...