What is Mutex Object and why it is used?



What is Mutex Object and why it is used?..

Answer / bond

In computer programming, a mutex (mutual exclusion object)
is a program object that is created so that multiple program
thread can take turns sharing the same resource, such as
access to a file. Typically, when a program is started, it
creates a mutex for a given resource at the beginning by
requesting it from the system and the system returns a
unique name or ID for it. After that, any thread needing the
resource must use the mutex to lock the resource from other
threads while it is using the resource. If the mutex is
already locked, a thread needing the resource is typically
queued by the system and then given control when the mutex
becomes unlocked (when once more, the mutex is locked during
the new thread's use of the resource).

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More Windows AllOther Interview Questions

How do I open a dll file and edit it?

0 Answers  


What do you mean by drop cap?

0 Answers  


Where is the menu button?

0 Answers  


What is the event log service?

0 Answers  


What is an interrupt? How are multiple interrupts dealt with?

0 Answers  






After perfom the CUT action if the power fails,data will be lost,how to recover that data?

2 Answers  


What is the keyboard shortcut for select all?

0 Answers  


How long will it take for my pc to update?

0 Answers  


What is the cause of bad sectors on hard drive?

0 Answers  


How do I change a file to jpeg?

0 Answers  


What is the d drive used for?

0 Answers  


What does recovering orphaned file mean?

0 Answers  


Categories