Subj : Re: mutex problem To : comp.programming.threads From : LinuxGuy Date : Fri Jun 17 2005 01:32 am Hi Torsten, Thanks for help.. you will get more idea about my problem from following one.. I have thread class a { public : void threadFunction() { mutex.lock() here doing some processing and updating "sampleString" mutex.unlock() } void anotherFuntion() { here I want to update "sampleString" and this function will be called from any other cpp file but at that time "threadFunction may have locked the resources. and using "sampleString" can you please tell me how to protect data or to execute functions without affecting each others data } private : string sampleString; } .