2079 5

Operating Systems20795 marksLock variable solution

What is race condition? Explain critical problem solution using lock variable.

What is race condition? Explain critical problem solution using lock variable. [5]

A race condition occurs when two or more processes access shared data concurrently, and the final result depends on the order or timing of their execution. Because the processes "race" against each other, the outcome is unpredictable and may lead to data inconsistency. Example: Suppose two proces...

Up nextWhat is memory compaction? Explain best fit memory allocation with suitable example.