Subj : Re: Best locking methods To : comp.programming.threads From : Chris Thomasson Date : Wed Apr 06 2005 06:07 pm > What is the best (fastest) method to synchronize access > to a memory block which is shared by say 5 reader threads > and 5 writer threads? Depends... 1. Do you receive a "lot" more reads than writes, or vise versa? 2. How is the average contention level? When reader thread(s) decide to access the data-structure will they more than likely be in contention with writer thread(s)? 3. Is this a "performance sensitive" data-structure in your application? ect... There are different solutions to your problem ranging from simple mutexs all the way to fairly complicated lock-free algorithms. We need a bit more info from you... :) -- http://appcore.home.comcast.net/ (portable lock-free data-structures) .