Mutex: Difference between revisions

m
Line 32:
* There is no way to keep a <code>LOCK</code> active for a fixed amount of time or machine instructions. If you have several instructions in a row that need to be <code>LOCK</code>ed, you must <code>LOCK</code> each one individually.
 
<lang asm> lock inc word ptr [ds:TestData] ;increment the word at TestData. Only this CPU can access it right now.</lang>
lock dec byte ptr [es:di]</lang>
 
=={{header|Ada}}==
1,489

edits