Operating Systems20785 marksImplementing Mutual Exclusion
What is lock variable? Discuss its working and problems associated with it in detail.
What is lock variable? Discuss its working and problems associated with it in detail. [5]
A lock variable is a single, shared variable used to implement mutual exclusion among competing processes. It is initially set to 0 and acts as a flag to indicate whether any process is currently inside its critical region. - Lock = 0 → No process is in the critical region (region is free) - Lock...