Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : David Schwartz Date : Sat May 21 2005 09:47 am "Casper H.S. Dik" wrote in message news:428ef2d4$0$64558$e4fe514c@news.xs4all.nl... > "David Schwartz" writes: >> A recursive mutex will have to determine that this unlock requires the >>mutex to actually be released. This cannot easily be done without either >>an >>extra interlocked operation, per-thread data for the mutex, or hiding the >>costs elsewhere by making the lock operation complex and bizarre. > All a recursive mutex needs is a counter; it does not need to > be interlocked as the lock is being held. You are correct. DS .