1,155 views

2 Answers

2 votes
2 votes
The answer is clearly option C).U can also refer to Galvin regarding the requirements of a solution to a critical section problem which are mutual exlusion , progress and bounded waiting.

Also we can say that atomic operation is not necessary because there exist solution to critical section problem which involves 2 and processes and we know pre emption is allowed between any set of concurrent processes and hence this means atomicity is not followed in that case.Atomicity means either all instructions to be executed or none.

In fact this is our default assumption that given any set of concurrent processes we can take preemption of any process at any instant to check whether the mutual exclusion , progress and bounded waiting are satisfied.So unless and until we are given the process is "Atomic" we can take preemption of that process.In that case atomicity is not followed.

Hence C) option is false.
1 votes
1 votes
mutual exclusion,progress  are the primary requirements

bounded waiting and portability are the secondary requirements
edited by

Related questions

1 votes
1 votes
1 answer
4
Tuhin Dutta asked Oct 8, 2017
999 views
There are two threads which try to solve critical section problem using Test-And-Set instruction.Does the above code prevent deadlock? please provide reason to your answe...