in Operating System
936 views
2 votes
2 votes

Please verify whether the given table in the picture is correct or not?

in Operating System
936 views

2 Comments

i don't think semaphores guarantee mutual exclusion. use them improperly and hurt mutual exclusion.
0
0

Most of the marks are wrong ! Test and set which is hardware solution guarantess mutual exclusion say for instance this is a code in C :

int lock = 0;
 
 void Critical() {
     while (TestAndSet(&lock) == 1);
     critical section // only one process can be in this section at a time
     lock = 0 // release lock when finished with the critical section
 }
0
0

Please log in or register to answer this question.

Related questions