Will the idea work if three or more processes use semaphore

Assignment Help Operating System
Reference no: EM13869490

The Nevercrash Operating System Company has been receiving complaints from some of its customers about its latest release, which includes semaphore operations. They feel it is immoral for processes to block (they call it ‘‘sleeping on the job''). Since it is company policy to give the customers what they want, it has been proposed to add a third operation, peek, to supplement up and down. peek simply examines the sema- phore without changing it or blocking the process. In this way, programs that feel it is immoral to block can first inspect the semaphore to see if it is safe to do a down. Will this idea work if three or more processes use the semaphore? If two processes use the semaphore?

Reference no: EM13869490

Questions Cloud

Does the method work if there is a single cpu switches : Does this method work if There is a single CPU that switches between processes every 100 msec and Two CPUs share a common memory in which the semaphore is located?
What advantage is gained by using queue for waiting process : What advantage is gained by using a queue for waiting processes as opposed to waking a random sleeping processes when an up is performed?
What are the potential long-term consequences for rosie : Which of the four most common roles in family systems do you think Rosie is taking on? What are the potential long-term consequences for Rosie in taking on these heavy responsibilities
Gunpowder corp.''s board of directors approved a : On November 6, 2009, Gunpowder Corp.'s board of directors approved a share option plan for key executives. On January 2, 2010, a specific number of share options were granted.
Will the idea work if three or more processes use semaphore : In this way, programs that feel it is immoral to block can first inspect the semaphore to see if it is safe to do a down. Will this idea work if three or more processes use the semaphore? If two processes use the semaphore?
Identify which boundary is best described by each family : Identify which boundary is best described by each family in the scenario above. Identify which boundary inadequacies are present in each family, if applicable. Explain how each boundary and boundary inadequacy manifests itself
How is a substance use disorder diagnosed : What category of substances do cocaine and amphetamine fall under, and what are the implications of this category on the body? Be sure to give the classification, DEA schedule, and physical effects. How is a substance use disorder diagnosed
Write lock and unlock in assembly language : If all processes lock the semaphore table before using it, only one process at a time can fiddle with the variables and pointers, thus preventing races. Write lock and unlock in assembly language.
What management organization and technology issues : What management, organization, and technology issues were addressed in building Wine.com's Web site?

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd