top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What's the basic difference between hardware and software solutions for critical section problem?

0 votes
408 views

What's the basic difference between hardware and software solutions for critical section problem? Why are they called hardware or software solution?

posted May 4, 2018 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

The Peterson's solution to the critical section problem,

Init: flag[2]={False}  //two process problem
Init turn=i or j.
do {
flag [i] = TRUE;
turn= j;
while (flag[j] && turn==j);
critical section
 flag [i] = FALSE; 
remainder section
} while (TRUE);

hence there is no guarantee that this algorithm will work efficiently on Modern Architecture systems.(Ref:- Galvin Book Page No - 229 ), Why so, can somebody help me out?

0 votes

Can someone please explain using any example ?

...