Uses of Mutex in the critical sections of a task

Define the uses of Mutex in the critical sections of a task.

E

Expert

Verified

Utilization of Mutex in the critical sections of a task:

Mutex is a semaphore which gives at an illustration two tasks mutually exclusive access to resources. Employ of mutex facilitates mutually exclusive access through two or more process to the resource (CPU). Similar variable, sem_m, is shared among the different processes. Assume that process and process 2 share sem_m and initial value is l of it.

i) Process’s 1 proceeds after sem_m reduces and equals 0 and finds the exclusive access to the CPU.
ii) Process I end after sem_m raises and equals l; process 2 can now determine exclusive access to the CPU.

630_Use of Multiples Semaphores.png

   Related Questions in Electrical Engineering

©TutorsGlobe All rights reserved 2022-2023.