answersLogoWhite

0

ask dr kevin

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is mean by Peterson's solution in OS?

We illustrate a classic software-based solution to the critical section to the critical solution problem known as peterson's solution.


What is the role of semaphore in critical section problem?

janina


The first know correct software solution to the critical section problem for n process with a lower bound on waiting of n-1 turns was presented by Eisenverg and McGuire The processes share the follow?

goodd


What is Peterson's solution in operating system?

Peterson's solution:- (AKA Peterson's solution) is a concurrent programming algorithm for mutual exclusion that allows two processes to share a single-use resource without conflict, using only shared memory for communication. It was formulated by Gary L. Peterson in 1981.While Peterson's original formulation worked with only two processes, the algorithm can be generalized for more than two.Mutual exclusionP0 and P1 can never be in the critical section at the same time: If P0 is in its critical section, then either flag is false (meaning P1 has left its critical section) or turn is 0 (meaning P1 is just now trying to enter the critical section, but graciously waiting). In both cases, P1 cannot be in critical section when P0 is in critical section.


What is distributed mutual exclusion?

distributed Mutual exclusion, in computer science, refers to the problem of ensuring that no two processes or threads (henceforth referred to only as processes) can be in their critical section at the same time. Here, a critical section refers to a period of time when the process accesses a shared resource, such as shared memory. The problem of mutual exclusion was first identified and solved by Edsger W. Dijkstra in his seminal 1965 paper titled: Solution of a problem in concurrent programming control..hope it helps:)


How are the sonnets divided or structure?

Sonnets are divided in two sections, the first section providing the theme or problem. The second section consists of the solution or conclusion.


What is the description of the critical section problem?

The Critical section problem occurs when the processors are in a Network. For eg consider that 3 processors share same database at a time, if one processor wants to update the database then no other process will get the access to that database. This point is called as critical section. Temporarily the connection between the other 2 system will be dropped.


If the neutral axis of a reinforced section is above the critical section what is the section called?

Under Reinforced Section


Which section is critical in rear axle?

The wheels and axle


What is the word that characterizes a critical section of code?

lock


Which is the world's 1st critical surgery?

Ceserean Section


Peterson algorigthm with n process?

while(1) { // thread i (0 <= i < n) for (j=1 ; j<n ; j++) { flag[i]=j; last[j]=i; for (k=0 ; k<n ; k++) { if (k==i) continue; while (flag[k]>=flag[i] && last[j]==i) { sleep(random()); } } } // critical section ... // end of critical section flag[i]=0; // not critical section ... // end of not critical section }