Event or Mutex
-
What is the exact differece between event and mutex w.r.t thread syncronization. I found that they can be used interchangably so where excatly is the difference. If possiable can any one give an example where event will be used and where mutex can be used. thanx in advance. Prakash. My God is more powerfull Than Your God. (the line that divides the world)
-
What is the exact differece between event and mutex w.r.t thread syncronization. I found that they can be used interchangably so where excatly is the difference. If possiable can any one give an example where event will be used and where mutex can be used. thanx in advance. Prakash. My God is more powerfull Than Your God. (the line that divides the world)
Events can be fired by lots of different threads at the same time, I think, whereas a mutex is something owned by one thread only. So when a thread is waiting for an event, it can be fired by more or less any other thread, whereas if it is waiting for a mutex, it is one specific thread that releases it. "Time to give a Newtonian demonstration, of a bullet, its mass and its acceleration." -Stephen Hawking the gangsta rapper
-
Events can be fired by lots of different threads at the same time, I think, whereas a mutex is something owned by one thread only. So when a thread is waiting for an event, it can be fired by more or less any other thread, whereas if it is waiting for a mutex, it is one specific thread that releases it. "Time to give a Newtonian demonstration, of a bullet, its mass and its acceleration." -Stephen Hawking the gangsta rapper
They say that it takes a pinch of salt to make the food tasty thats what you did. Thanx a lot, now i specifically understood where i can use mutex and where events thanx again ":-) My God is more powerfull Than Your God. (the line that divides the world)