Subj : Re: atomic_ptr on powerpc To : comp.programming.threads From : SenderX Date : Fri Mar 04 2005 04:58 pm >I got atomic_ptr working on powerpc. That will be a very nice asset for the PowerPC. I believe you posted a sketch of the algorithm earlier. IIRC, it used ll/sc and the algo was simple and extremely straight forward, like most of your stuff. > The RCU stuff worked with only > a recompile so OS-X Darwin has a pretty clean pthreads implementation. > While Linux preempts even when you don't want it to, Darwin has the > opposite problem. It doesn't preempt even when you do a sched_yield(). > I had to set SCHED_RR to get the threads to interleave. Interesting. I am looking forward to purchasing a Mac mini. .