Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared Boolean variables S1 and S2 are randomly assigned.

    Which one of the following statements describes the properties achieved?
    1. Mutual exclusion but not progress
    2. Progress but not mutual exclusion
    3. Neither mutual exclusion nor progress
    4. Both mutual exclusion and progress
Correct Option: A

As per the methods provided in process 1 and process 2, the process 1 and process 2 cannot exist simultaneously in the critical section. So, when the process 1 is in the critical section, process 2 is not and thus, the condition of mutual exclusion is satisfied but not progress.



Your comments will be displayed only after manual approval.