For Students
Sunday, 11 March 2012
Synchronization Hardware
Atomically swap two variables.
void Swap(
boolean
&a,
boolean
&b) {
boolean
temp = a;
a = b;
b = temp;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment