July 18, 2009
2:56 am

Interlocked Operations are considered high-performance since they don’t utilize operating system mechanisms to function.  Instead they rely on hardware-based synchronization techniques. Interlocked operations’re a way to update variables in an atomic manner. An operation is considered atomic if it’s indivisible (not in a mathematical sense). During atomic operations threads cannot access variables that’re in use (locked) by a different thread. That having been said, Interlocked Operations are limited in that there’s only so much that the native operations can do. More complex operations would require the use of alternate mechanisms – such as mutexes.

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« Intel claims No. 2 Linux contributor spot, report LWN.netExchange Server 2007: Update Rollup 9 for SP1 (KB970162) »
Feed Icon

Subscribe via RSS or email: