top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Peterson's solution to the critical section problem, is not guaranteed on modern architecture why?

+3 votes
1,090 views

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?

posted Dec 28, 2013 by Atiqur Rahman

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Looks I have not understood the complete context, ie what is the problem what is the doubt. I hope you are talking about http://en.wikipedia.org/wiki/Peterson%27s_algorithm which has limitation on more then one CPU architecture, and works perfectly only on single CPU architecture which keep sequential operations intact.

Sorry I have not understood the code segment which you provided.
yeah as per wikipedia...you may refer the book as per reference given... it is software solution, problem of multiple processor generally comes into hardware solutions(As same wikipedia page says below in Notes).
So what is the question? can you please elaborate?

Similar Questions
0 votes

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

+3 votes

Do you experience application hang problems? If so, give the top reasons why the applications hang and cause slow performance?

0 votes

Safari, as we all know is the browser choice for all the Apple products. With some of the most advanced features and blazing fast speed, users effortlessly surf the internet with this innovative web-browser. While surfing the internet, if you certainly confront Apple Safari Not Responding issue, then your entire work stops all of a sudden.

To begin with, I have listed down certain reasons for which the Apple Safari Browser may stop responding. As a user, you can go through each of them. Doing that you can check the reason for Apple Safari Not Responding issue on your device.

Apple Safari Not Responding Issue: Basic Reason
While Safari is a very much powerful browser, there are several instances when the Safari Browser stops responding to users’ request. When this kind of a situation arises, it is very important that we have a knowledge of the various reasons that may cause this error. The various causes for the Apple Safari Not Responding issue may be:

Internet connection discrepancies
Not updating Safari browser for a long time
Discrepancies with the antivirus software
Accumulation of cookies, cache, and web-history on Apple Safari
If you have been facing the Apple Safari Not Responding issue due to any of these reasons, then you can find the easy fixes as you read here. If somehow neither of the above-mentioned is the reason for Apple Safari Not Responding issue, then your device needs a professional touch.

For that matter, you can readily connect with our Apple Safari Browser Support. Here you can find the most instant and relevant fixes for the issue. Our services are available worldwide. So you can connect to our team from anywhere across the globe. Here you can find the most optimized fixes for Apple Safari Not Responding issue.

Fixes For Apple Safari Not Responding Issue

When Apple Safari browser stops working or responding, then it becomes pretty much tough for the users to resolve that issue.

The issue can be related to add-ons or plugins or it may be the above-mentioned reasons. If you are also facing the similar issues, you can follow the fixes that I have mentioned below.

Apple Safari Not Responding- fixes Turning Off The Safari Browser Extensions
The very first thing you can do to resolve this the Apple Safari Not Responding issue is you can turn off the Safari extensions and check if the same problem is recurring.

Apple Safari Not Responding- fixes Removing the Add-ons And Internet Plug-ins
At times the working of the Apple Safari browser is very much hampered due to the add-ons and plug-ins on the browser. Simply remove the add-ons and check if they are causing the Apple Safari Not Responding issue on your device. Also, you can try removing the cache, cookies and the web-history data.

If certainly, you are unable to remove the plug-ins and add-ons of your device do let us solve the issue for you. Our technical experts will give you the most optimized steps to remove the add-ons from the web browser.

Apple Safari Not Responding- fixes Trying For A Different Network
If the Safari browser is somehow not responding on your device, you can always try for a different network. But, if you are unable to switch the network of your device just drop us a line. We are always here to serve the technical requirements.

Apple Safari Not Responding- fixes Resetting The Network Settings
At times the incorrect or improper network settings may cause the Apple Safari Not Responding issue on your device. You can always go for checking the network settings of your device and reset the same to fix this issue.

If you are unable to do so get in touch with our Safari Browser Support team. We are always ready to assist you to fix the Apple Safari Not Responding issue.

Apple Safari Not Responding- fixes Restarting The Device
Many times, when you restart your device resolves the minor issues of your computer system. Sometimes, upon restarting your computer device the Apple Safari Not Responding issue may get resolved.

...