answersLogoWhite

0


Best Answer

The signal() operations associated with monitors is not persistent in the following sense: if a signal is performed and if there are no waiting threads, then the signal is simply ignored and the system does not remember the fact that the signal took place. If a subsequent wait operation is performed, then the corresponding thread simply blocks. In semaphores, on the other hand, every signal results in a corresponding increment of the semaphore value even if there are no waiting threads. A future wait operation would immediately succeed because of the earlier increment.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does the signal operation associated with monitors differ from the corresponding operation defined for semaphores?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Monitors and Semaphores?

a semaphore is a stoplight and or traffic signal.


What is weak semaphore and strong semaphore?

strong semaphores specify the order in which processes are removed from the queue, which guarantees avoiding starvation. Weak semaphores do not specify the order in which processes are removed from the queue.


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)


Can computers monitors be thrown in the trash?

NO! You will get fined for it if you get caught. Monitors need to be taken to the recycling yard, and usually require a small recycling fee. Google your local "recycling center" and ask them about the cost associated with the monitor.


Type of monitors?

There are: CRT monitors (those fat monitors) and LCD monitors (flat screens)


The mandatory labels used at convey the contents of the container associated hazards the Hazardous Waste monitors name and contact information and?

Accumulation start date or the word "Satellite"


Is there gold in crt monitors?

No but there is in LCD monitors.


How does a computer monitors performance?

computer monitors


How many monitors does vista support?

16 monitors !!


Are TFT monitors costlier than LCD monitors?

Yes


When was CoolTouch Monitors created?

CoolTouch Monitors was created in 2005.


What are old style monitors called?

They are called CRT monitors