Subj : Re: volatile or mutex To : comp.programming.threads From : Torsten Robitzki Date : Mon May 16 2005 02:26 pm marri wrote: > Assuming we need a mutex to synchronize a variable, is there a need and > advantage for me to declare the variable as volatile?? There is no advantage, but it might slow down the access to that variable, because the compiler will generate less optimize code. regard Torsten .