Subj : Re: Diff b/w Events, Semaphores and mutex To : comp.programming.threads From : Gurikar Date : Mon Apr 25 2005 09:29 pm Thank you david, Mutex: A lock that only one thread can hold. These are used to ensure that only a single thread accesses a shared object at a time. Mutex can only lock shared object but not particluar piece of code. Is it? Semaphores: A number. You can increase the number, decrease the number, or do a "wait and decrement" operation. They can be used to ensure that no more than a particular number of threads (which can be one) can access a particular resource. What do you mean particluar resource, is it a object or piece of object. One more thing what to use when your doing inter thread communication and what to used when doing inter process communication? Regards PS: Please ignore my messages if they sound silly. .