Question: process() {a = 0; (while a == 0) {a = TESTANDSET(X)} Critical Section X = 1; } true false-if TESTANDSET(X) always returns 1 then there
process() {a = 0; (while a == 0) {a = TESTANDSET(X)} Critical Section X = 1; } true false-if TESTANDSET(X) always returns 1 then there is no waiting true false-since testandset is atomic there is no busy waiting true false-this solution can only be used with 2 processes true false-this solution guarantees no deadlock
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
