Redesign the scheduler to support this priority scheme

Assignment Help Mechanical Engineering
Reference no: EM131090189

In this exercise you will extend the preemptive scheduler to support priority. This system should support three levels of priority: 1 will be the highest. You can solve this problem using either assembly or C.

a) Redesign the TCB to include a 16-bit integer for the priority (although the values will be restricted to 1, 2, 3). Show the static allocation for the three threads from the example in this chapter, assuming the first two are priority 2 and the last is priority 3. There are no priority 1 threads in this example, but there might be in the future.

b) Redesign the scheduler to support this priority scheme.

c) In the chapter it said "Normally, we add priority to a system that implements blocking semaphores and not to one that uses spin-lock semaphores." What specifically will happen here if the system is run with spin-lock semaphores?

d) Even when the system supports blocking semaphores, starvation might happen to the low-priority threads. Describe the sequence of events that causes starvation.

e) Suggest a solution to the starvation problem.

Reference no: EM131090189

Questions Cloud

Standard deviation sigma equals : Assume that adults have IQ scores that are normally distributed with a mean of mu equals 100 μ=100 and a standard deviation sigma equals 15σ=15. Find the probability that a randomly selected adult has an IQ less than 121121.
How could you change the above program to prevent deadlock : How could you change the above program to prevent the deadlock?
Standard deviation of the minimum temperature : Suppose the standard deviation of the minimum temperature in February is 6 degrees Upper F6°F and that the distribution of minimum temperatures in February is approximately Normal.
Capstone - group consulting project : Note: Choose a Fortune 500 firm of your choice analyze it after collecting data and develop a consulting proposal and project using the concepts and material in the text and videos PowerPoint slides must accompany the project, 10 pages text minim..
Redesign the scheduler to support this priority scheme : Even when the system supports blocking semaphores, starvation might happen to the low-priority threads. Describe the sequence of events that causes starvation.
An analysis essay breaks down a text : In general terms, an analysis essay breaks down a text (a letter, speech, ad, video, painting, billboard, etc.) into its constituent parts (language choice, metaphors, images, colors, tone of voice, use of examples/evidence, shapes, etc.), analyze..
What price knowledge : What were the ethical concerns involved in the Stanford Prison Experiment, Asch's Conformity Experiment, and Milgram's Shock-Obedience Experiment? Should researchers be able to use deception for the sake of their experiments? Write 1 to 2 pages de..
Determining the hypergeometric distribution : If X has a hypergeometric distribution with M = 3, N = 6 and n = 2, find the probability distribution of Y, the number of successes minus the number of failures
What is the specific problem or condition being explored : Identify any obstacles that could arise if this preliminary topic becomes your actual dissertation topic. For example, are the instruments used to measure your constructs available and affordable? Do you have access to the target population from..

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  What is the proeutectoid phase

Consider 6.0 kg of austenite containing 0.45 wt% C, cooled to below 727 degrees Celcius (1341 degrees Farenheit).

  What is the thermal resistance associated with a wall that

consider a composite wall that includes an 8-mm thick hardwood siding 40mm by 130mm hardwood studs on .65m centers with

  Compute the critical resolved shear stress

7.14 Consider a single crystal of nickel oriented such that a tensile stress is applied along a [001] direction. If slip occurs on a (111) plane and in a [101] direction, and is initiated at an applied tensile stress of 13.9 MPa (2020 psi), comput..

  Moore machine and a mealy machine

Initially, you are required to design both a Moore machine and a Mealy machine and discuss the advantages/disadvantages of each. For these initial circuit designs, use D flip-flops as the memory elements, then build and test both circuits on Yenka..

  A heat engine accepts 200000 btu of heat from a source at

a heat engine accepts 200000 btu of heat from a source at 1500 r and rejects 100000 btu of heat to a sink at 600 r.

  Determine the required flow rate of air through the chiller

A conditioned space has a latent load of 12,000 Btu/hr and a sensible load of 20,000 Btu/hr. The space is to be maintained at 75 deg F, 40% rh. Determine the required flow rate of air through the chiller in CFM, and the humidity ratio of the supply a..

  Take for the buyer to completely pay for the building

A building is priced at $255,000. If a buyer makes a down payment of $55,000 and a payment of $2,000 every month thereafter, how many months will it take for the buyer to completely pay for the building? Interest is charged at a rate of 9% compounded..

  Mass of water in a piston-cylinder assembly

1. One pound mass of water in a piston-cylinder assembly, initially a saturated liquid at 1 atm, undergoes a constant- pressure, internally reversible expansion to x 5 90%. Determine the work and heat transfer, each in Btu. Sketch the process on p..

  What is the drag coefficient of the model also calculate

a 14 scale model of a tractor trailer is tested in a wind tunnel under standard sea level conditions. the model

  Find a the work output of the heat engine b the efficiency

a carnot heat engine receives 90 kj from a reservoir at 627 . it rejects heat to the environment at 27 . one-fifth of

  Develop a computer program for the gear transmission systems

Develop a computer program for the Gear Transmission Systems with consideration that each gear designer will have a different view as to what the most important design factors are.

  Consumption vector of the ith consumer

Consider an economy with I consumers and L goods, where, for all i, the endowment vector of consumer i is ei , and the utility function of each consumer i is of the form Iui(xi , ) xn), i=1 where xi is the consumption vector of the ith consumer. Assu..

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