What is mutex

What is meant by the term mutex?

E

Expert

Verified

Mutex refers to the program object which allows multiple program threads to share the same resource, like file access, but not at same time. Whenever a program is started a mutex is created having a unique name. After this stage, any thread which requires the resource should lock the mutex from other threads while it is utilizing the resource. The mutex is then set to unlock when the data is no longer needed or the routine is finished.

   Related Questions in Operating System

©TutorsGlobe All rights reserved 2022-2023.