Everything2
Near Matches
Ignore Exact
Full Text
Everything2

mutex

created by Brian Feldman

(thing) by Brian Feldman (4.8 y) (print)   ?   (I like it!) Sun Oct 01 2000 at 19:31:33

A locking primitive, a mutex is an object of some type used to prevent multiple concurrent threads of execution from munging data incorrectly or following an algorithm incorrectly.

The term "mutex" is short for "mutual exclusion", literally the prevention of more than one code path from doing something at the same time. It has two states: locked or unlocked. Information on the owner may be stored, allowing for easier debugging as well as the possibility of recursion. Only the owner must unlock a mutex which it has locked.

A recursive mutex must also have a reference count, and may be repeatedly locked by its current owner and then repeatedly unlocked the same number of times. This is sometimes useful, but not usually for new code.

Compare: atomic access, semaphore.


printable version
chaos

Semaphore atomic The Value of a College Degree - Computer Science mutual exclusion
spinlock priority inversion futex IN THE GRIM FUTURE OF HELLO KITTY, THERE IS ONLY WAR.
Database connection pooling sock on the door knob critical section munge
condition variable Race condition Thread-Safe thread
MOSIX middle-endian mutually exclusive lock convoying
spin lock Pathfinder reset bug SMPng Reentrant
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your sibling would have liked:
The siege at Wounded Knee
Thai
I've had better hugs from wind gusts and dead people
Memoir of a Well-Intentioned Man
Nitroglycerin
Catullus 16
Japanese Constitution
Paul Wellstone
Sumerian
Robert Owen
When glided in Porphyria
Tipping for service
Tycho Brahe
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
This affordable entertainment brought to you by The Everything Development Company