Subj : Re: posix and lock-free algorithms To : comp.programming.threads From : Joe Seigh Date : Fri Aug 12 2005 04:48 pm Sean Kelly wrote: > > Exactly. To make this point easier to understand, I suggest applying > it to a clustered system--each machine might implement synchronization > via message-passing. In such an environment, it's obviously far more > efficient to only synchronize data altered within the critical section. > Locks don't just synchronize data altered within the critical section. They have release semantics for data altered before releasing the lock and acquire semantics for data accessed after acquiring the lock. A lot of stuff would break otherwise. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .