Subj : Re: Lock Free -- where to start To : comp.programming.threads From : Joe Seigh Date : Wed Sep 28 2005 09:06 pm Oliver S. wrote: >>>But for application code, or even most libraries >>>on top of threading libraries, it's a pure loss. > > >>Application code would not use raw lock-free structures directly. >>They would use a library that exports a "portable API". > > > I think what David means, is that lock-free is over-emphasized and I > must agree on that. With producer/consumer-patterns typical in server > -applications, intervals where queues are locked are extremely short > (in the best case only a pointer is fetched from a queue) and the > processing-intervals when a dequeued item is processed at least some > thousand times higher. So there's no real need for lock-free queues. > Lock-free lifo-pools may make sense for memory-allocators, but good > allocators magage thread-local pools so this need is minimized. And > if you need maximum performance on memory-allocation, you manage your > own pools. > Lock-free processing may look fascinating, but primarily superfluous. So JSR-166 was a waste of time? -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .