Subj : Re: Lock-free buffer To : comp.programming.threads From : SenderX Date : Sat Mar 05 2005 04:00 pm >> How would the timer know how long to wait? > > There are several techniques and it depends upon the application. One > way is to wait until all threads that could have used the buffer pass a > neutral point. That's sounds like RCU, but RCU is not based on timers. How could you possibly calculate how long the timer should wait before freeing the data? Using timers for this kind of stuff creates a race-condition. .