top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

0 votes
42 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 ?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...