Subj : Re: Double-width CAS? To : comp.programming.threads From : Joseph Seigh Date : Fri Jan 14 2005 07:36 pm On Tue, 11 Jan 2005 11:12:59 +0800, Eerf Kcol wrote: > Hi, > > In building lockfree algorithms, we often see CAS. But double-width CAS has > also been mentioned quite a lot. > > What is double-width CAS? What is the difference/advantage it has over > CAS? Can you give an example of its usage when it has an advantage over CAS. > http://atomic-ptr-plus.sourceforge.net/ The advantage is you can do things that are impossible to do with CAS in some cases. -- Joe Seigh .