spinlock
Sign in to saveAlso known as spin lock
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 be held until they are explicitly released, although in some implementations they may be automatically released if the thread being waited on (the one that holds the lock) blocks or "goes to sleep".
In the Vinony graph
Within Vinony's link graph, spinlock is referenced by 23 other articles, and connects out to thread, busy waiting and MESI protocol.
It sits within the topics Concurrency control algorithms and Programming constructs.
Its subject is documented across 15 Wikipedia language editions.
Wikidata facts
- Subclass of
- lock
Show 2 more facts
- Stack Exchange tag
- stackoverflow.com/tags/spinlock
- uses
- busy waiting
Sources (1)
via Wikidata · CC0
Article · Français
En programmation informatique et plus particulièrement en programmation concurrente, le spinlock ou verrou tournant est un mécanisme simple de synchronisation basé sur l'attente active. Le spinlock base son principe sur l'attente active. En attendant leur tour, les threads l'utilisant vont le tester de manière répétée jusqu'à ce qu'il se libère. Pour ce faire, les threads doivent impérativement utiliser une opération atomique afin de garder le principe de l'exclusion mutuelle.
Abstract from DBpedia / Wikipedia · CC BY-SA