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)}

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!