Test-and-set

In computer science, the test-and-set CPU instruction is a special instruction that atomically tests and modifies the contents of a memory location. It is used to implement semaphores in multiprocessor systems. In uniprocessor systems, it is sufficient to disable interrupts before accessing a semaphore. However, in multiprocessor systems, it is impossible and undesirable to disable interrupts on all processors at the same time; and even with interrupts disabled, two or more processors could be attempting to access the same semaphore's memory at the same time. The test-and-set instruction, allows any processor to atomically test and modify a memory location, preventing such multiple processor collisions.

See also

External links

 

<< PreviousWord BrowserNext >>
nouhak phoumsavanh
battle of oenophyta
southern elephant seal
naia national football championship
john lynch staunton
kaena
ral mnard
justification (jurisprudence)
justification (typesetting)
vancouver art gallery
justification (theology)
rapadura
shadowcat
kalimpong
can spam act of 2003
congrs international d'architecture moderne
charlotte of cyprus
meiringen
blanche bruce
seussical
olympic flag
a 102
james ii of cyprus
horton hears a who!
james iii of cyprus
the adventure of the final problem
mary elizabeth lease
petoskey stone
john ii of cyprus
hojo yasutoki
international style
deborah grey
ida b. wells
janus of cyprus
voskhod rocket
the adventure of the empty house
illinois mathematics and science academy
james i of cyprus
carstensz pyramid
david lewis (politician)
church of god of prophecy
alice of cyprus
hugh i of cyprus
larry walker