Mutex: Difference between revisions
m
→{{header|8086 Assembly}}
Puppydrum64 (talk | contribs) m (→{{header|8086 Assembly}}: clarification) |
Puppydrum64 (talk | contribs) |
||
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.
lock dec byte ptr [es:di]</lang>
=={{header|Ada}}==
|