355 Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : Casper H.S. Dik Date : Sat May 21 2005 09:35 am "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. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth. . 0