answersLogoWhite

0

Mutual exclusion is an issue in concurrent programming when two concurrent processes are attempting to access the same shared resource and neither can complete their process because the other is blocking it. A semaphore controls access to the shared resource, ensuring that one process is completely finished before a second can access it.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you save mutual friends?

to save mutual friends is to find out what the problem is that u guys are haning and solve....


The goal of applied science is?

It is to use science for a practical job or to solve a problem.


What is the difference between solving a problem and analyzing a problem?

When you analyze a problem you look it over which is what analyzing means. You look over the problem and then you solve it. When you solve a problem you solve it and you use certain steps and solve it but of course everyone has there ways to solve a problem but some people have ways to solve it by just analysing it. That is the difference.


What problem did the the trampoline solve?

It didn't solve any problem it was invented as a sport not as a way to solve anything...


Can sasol process solve south Africa's petrol problem?

no it can not solve the problem


How do you solve the problem of physical memory dump?

How do you solve the problem of physical memory dump?


How can geography solve the problem of street urchins?

how can geography solve the problem of street urchins?


What is the similarity between semaphore and monitor?

The wait and signal operations on condition variables in a monitor are similar to P and Voperations on counting semaphores. A wait statement can block a process's execution, while a signal statement can cause another process to be unblocked. However, there are some differences between them. When a process executes a Poperation, it does not necessarily block that process because the counting semaphore may be greater than zero. In contrast, when a wait statement is executed, it always blocks the process. When a task executes a V operation on a semaphore, it either unblocks a task waiting on that semaphore or increments the semaphore counter if there is no task to unlock. On the other hand, if a process executes a signal statement when there is no other process to unblock, there is no effect on the condition variable. Another difference between semaphores and monitors is that users awaken by a V operation can resume execution without delay. Contrarily, users awaken by a signaloperation are restarted only when the monitor is unlocked. In addition, a monitor solution is more structured than the one with semaphores because the data and procedures are encapsulated in a single module and that the mutual exclusion is provided automatically by the implementation.(excerpted from http://ei.cs.vt.edu/~cs5204/sp99/monitor.html) The wait and signal operations on condition variables in a monitor are similar to P and V operations on counting semaphores. A wait statement can block a process's execution, while a signal statement can cause another process to be unblocked. However, there are some differences between them. When a process executes a P operation, it does not necessarily block that process because the counting semaphore may be greater than zero. In contrast, when a wait statement is executed, it always blocks the process. When a task executes a V operation on a semaphore, it either unblocks a task waiting on that semaphore or increments the semaphore counter if there is no task to unlock. On the other hand, if a process executes a signal statement when there is no other process to unblock, there is no effect on the condition variable. Another difference between semaphores and monitors is that users awaken by a V operation can resume execution without delay. Contrarily, users awaken by a signal operation are restarted only when the monitor is unlocked. In addition, a monitor solution is more structured than the one with semaphores because the data and procedures are encapsulated in a single module and that the mutual exclusion is provided automatically by the implementation.(excerpted from http://ei.cs.vt.edu/~cs5204/sp99/monitor.html)


What is the process of instruction the computer to solve a problem?

Programming is the process of instructing a computer to solve a problem.


What is the complex problem that you helped solve?

A complex problem I helped solve was when my friend was arguing with a girl .


What is the easiest way to solve algebra?

The easiest way to solve an algebra problem is to work out the problem.


How do you solve an or problem if a variable is unrestricted in sign?

Solve the problem using the + sign for the variable. Then solve the problem using the - sign for the variable. Report your answer as the answer that you got using + or the answer that you got using -.