Question

In: Computer Science

Who do you think is “right": the SEDA paper or the “Events are a Bad Idea"...

  • Who do you think is “right": the SEDA paper or the “Events are a Bad Idea" paper and why? Justify your answer.
  • What is the difference between Mesa and Hoare Monitor semantics?
    • Which is simpler from the perspective of the application programmer?
    • Which is simpler from the perspective of the OS developer? Why?

Solutions

Expert Solution

Q1.

The paper 'Events are a bad idea' by Rob von Behren, Jeremy Condit and Eric Brewer is right because:

  • Events tends to complicates the control flow
  • It is more feasible to use Threads than fixing an issue with Events
  • For complex parts and issues, event based systems fail to provide whereas it is gracefully handled by threads
  • Similar or even higher performance level can be achieved by threads
  • Threads simpler programming model gives advantage over Events.

Q2.

Mesa scheduling,

  • Signaler keeps the lock and CPU, while the signaled thread is simply put on the ready queue and will run later.
  • In Mesa scheduled condition must be rechecked after being awoken from a Wait() operation i.e. they need a while loop around the execution of Wait().

Hoare scheduling,

  • Signaler gives the lock and CPU to the signaled thread which begins running until it releases the lock, at which point the signaler regains the lock and CPU.
  • Hoare scheduled monitors the condition is check is not needed after being awoken, since they know that the code after the Wait() is executed immediately after the Signal() i.e. they do not need a while loop around the execution of Wait().

Related Solutions

Who do you think is closest to being right about how to fix the economy? Classical...
Who do you think is closest to being right about how to fix the economy? Classical economists, Keynesians, Monetarists or Supply-Siders? Why? Does it depend on the cause of the macroeconomic disruption? Which school of thought would be best during a recession? Why? Which school of thought would be best during a period of inflation? Why? Which school of thought would be best during a period of stagflation
Do you think there are any bad things about the The Invisible Hand?
Do you think there are any bad things about the The Invisible Hand?
What do you think the Federal Government needs to do to minimize the bad impacts that...
What do you think the Federal Government needs to do to minimize the bad impacts that result from Corporate activities? Remember, the Constitution gives the Federal Government the authority over interstate commerce, not the states. How could those policies and regulations be structured to retain the benefits that come from Corporations
Do you think that human beings are essentially good or bad, or a combination of both?...
Do you think that human beings are essentially good or bad, or a combination of both? Why? Argue for, and bring evidence to support, the position you have taken. How does your position affect your approach to morality - for example, should a moral system be strict, clear, and absolutistic, or, permissive, flexible, and relativistic? Your answer should be in essay form, and a minimum of 500-700 words in length.
Think of an idea/action that you can do to ensure reimbursement for the services rendered by...
Think of an idea/action that you can do to ensure reimbursement for the services rendered by a nurse entrepreneur
Do you think it is a good idea for Porsche to hedge 100% of its economic...
Do you think it is a good idea for Porsche to hedge 100% of its economic exposure? Why or why not?
(1) Do you think it is a good idea for states to cap noneconomic damages in...
(1) Do you think it is a good idea for states to cap noneconomic damages in tort cases? Explain. (2) Do you think it is a good idea for states to cap total damages in tort cases? Explain. Why are the considerations for this different than for capping noneconomic damages alone? Explain. (3) Give at least one real-life example of a tort case which would likely be negatively affected by caps on damages, meaning the plaintiff will not recover fully...
do you think an amendment would be a good idea or a whole new Act?
do you think an amendment would be a good idea or a whole new Act?
What do you think of Abraham Joshua Heschel’s idea that at the end of creation the...
What do you think of Abraham Joshua Heschel’s idea that at the end of creation the goal of all life is rest?
Do you think people have a right to die if they are in great pain and...
Do you think people have a right to die if they are in great pain and diagnosed with a terminal illness? What is the difference between euthanasia and physician assisted suicide? Should euthanasia be legal or illegal? Should physician-assisted suicide be legal or illegal?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT