Quantcast
Channel: Steve Graegert » Tips & Tricks
Viewing all articles
Browse latest Browse all 15

Using Atomic Operations in C on Solaris 10

$
0
0
Atomic instructions ensure global visibility of atomically-modified variables on completion. In a relaxed store order system, this does not guarantee that the visibility of other variables will be synchronized with the completion of the atomic instruction. If such synchronization is required, memory barrier instructions must be used. Atomic instructions (like atomic_add_int(3C)) can be expensive, since [...]

Viewing all articles
Browse latest Browse all 15

Trending Articles