Explain what can be done to prevent race condition

Assignment Help Operating System
Reference no: EM1371083

Race conditions are possible in many computer systems. Consider a banking system with two functions: deposit(amount) and withdraw(amount). These two functions are passed the amount that is to be deposited or withdrawn from a bank account. Assume a shared bank account exists between a husband and wife and concurrently the husband calls the withdraw() function and the wife calls deposit(). Describe how a race condition is possible and what might be done to prevent the race condition from occuring.

Reference no: EM1371083

Questions Cloud

Xplain how much you value your life : Suppose that you are indifferent in between se designations, save for differential risk of death, and illustrate what does your willingness to pay for these vacation tells you about Explain how much you value your life.
What is the average velocity of the water in the pipe : One liter of water is 41C is used to make iced tea. How much ice at 0 C must be added to lower the temperature of the tea to 17C? The specific heat of water is 1 cal/g C and latent heat of ice is 79.7 cal/g. Reply in units of g.
Compute the equivalent cost of owning and operating : Compute the equivalent cost of owning and operating if the discount rate is 5% per year and Calculate the equivalent cost of owning and operating if the discount rate is 15% per year?
Quality management philosophies : Determine the main differences between re-engineering and continuous Improvement as Quality Management Philosophies?
Explain what can be done to prevent race condition : Suppose shared bank account exists between husband and wife and concurrently husband calls withdraw() function and wife calls deposit(). Explain how race condition is possible and what might be done to prevent race condition from occuring.
Discuss why demand curve faced by a perfect competitor : Discuss why demand curve faced by a Perfect Competitor is assumed to be perfectly elastic and that of a Monopolist less elastic.
Illustrate what did classical economists assumes : Illustrate what did classical economists assume about flexibility of prices, wages and interest rates. Illustrate what did this assumption imply about self-correcting tendencies in an economy in recession. Illustrate what disagreements did Keynes ..
What is the kinetic energy of electron in electron volts : A jetliner, traveling northward, is landing with a speed of 65m/s. Once the jet touches down, it has 715 m of runway in which to reduce its speed to 6m/s
What net force is acting on the mass along the incline : A small steel ball bearing with a mass of 17g is on a short compressed spring. When aimed vertically and suddenly free, spring sends the bearing to a height of 1.33 m. compute the horizontal distance ball would travel if the same spring were aimed..

Reviews

Write a Review

Operating System Questions & Answers

  Illustrate results applying deadlock detection algorithm

Illustrate the results applying deadlock detection algorithm to following data. Give proper description for supporting your answer.

  Deadlock avoidance and scheduling

Deadlock Avoidance and Scheduling

  Create algorithm which prevents deadlock using one semaphore

Using exactly one semaphore, create an algorithm which prevents deadlock. Do not be concerned about starvation and inefficiency.

  What is life cycle costing

What is Life Cycle Costing. Describe briefly the methodology for Life Cycle Costing. What are the criteria to consider when a procurement officer is faced with the decision of procuring a used equipment instead of a new one.

  Value of semaphore before entering into critical section

Give a solution using Monitor that is starvation-free. What would be value of semaphore before entering into Critical Section and after leaving it.

  Write list of three known vulnerabilities for sql server

Using the internet as a source, compile a list of three known vulnerabilities for SQL Server on Windows operating systems and three vulnerabilities for Oracle on Unix.

  Describe three solutions to critical section problem

Describe three solutions to critical section problem Explain the different methods used to handle deadlocks Distinguish between "No preemption" and "circular wait" in deadlocks prevention

  Describe benefits of providing synchronization tool

Slim reader-writer locks favor neither readers nor writers, nor are waiting threads ordered in FIFO queue. Describe benefits of providing such a synchronization tool.

  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.

  Discuss an application that benefits barrier synchronization

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

  Specify the order in which processes execute

Specify the order in which processes execute and determine the mean process turnaround time for each of the scheduling algorithms.

  Stand alone child process

Forking the child process

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