Round-robin scheduling is used to execute the processes

Assignment Help Basic Computer Science
Reference no: EM13547580

Suppose we have a producer and a consumer. The producer produces items and inserts them into a queue owned by the consumer, while the consumer consumes items from its queue in FIFO order. Each item requires 1 time quantum to produce and 1 time quantum toconsume. The queue is initially empty and has a maximum size of 3. If the queue is full when a producer wants to run, the producer will spin wait until the queue is not full. If the queue is empty when the consumer wants to run, the consumer will spin wait until the queue is not empty. Consider the case when we run three producers P1, P2, and P3, and one consumer C1 and all of the processes are runnable starting at time zero.

a) If round-robin scheduling is used to execute the processes, how many items will each process have produced and consumed
at the end of 10 time quanta? Assume that the initial run queue order is P1, P2, P3, C1.

Reference no: EM13547580

Questions Cloud

How influential was the renaissance to later movements : The primary reasons why the Pope called for a Holy Crusade against the Muslim empire were to drive the Turks from Anatolia, Obligate the Byzantines, provide occasion for healing the Great Schism on Rome's terms, and to capture the Holy land.
Define how many hours will it take to fill the pool : A swimming pool has a volume of 1.8 x 104 gallons. How many hours will it take to fill the pool if water is added at a rate of 3.9 gal/min
What height does it reach above the surface of the moon : An electromagnetic rail accelerator is used to launch a research probe vertically from the surface of the Moon. What height does it reach above the surface of the Moon
Write a literature review - develop a research question : Draw on the additional resources for course for guidance in understanding the concepts
Round-robin scheduling is used to execute the processes : a) If round-robin scheduling is used to execute the processes, how many items will each process have produced and consumed at the end of 10 time quanta? Assume that the initial run queue order is P1, P2, P3, C1.
Estimate the average power delivered to the entire circuit : A series ac circuit contains a 350 ohm resistor, a 17.0 mH inductor, a 3.10 uF capacitor, Find the average power delivered to the entire circuit
How far behind the mirror is the image located : An object that is 35 cm in front of a convex mirror has an image located 20 cm behind the mirror. How far behind the mirror is the image located
Prolog program : Prolog program
Estimate the normal force exerted by the floor on each hand : Assume L1 = 0.844 m and L2 = 0.401 m. Calculate the normal force exerted by the floor on each hand

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Factors finding whether something is politically feasible

Describe political feasibility. What factors go into determining whether something is politically feasible in an organization? Answers may include whether a sponsor exists

  Map elements can placed anywhere within body the web page

Map elements can be placed anywhere within the body of the Web page because they are not actually displayed by the browser, but used as references for mapping ____ to inline images.

  Calculate the minimum distance from the start to the goal

Calculate the minimum distance from the start to the goal with passing all the checkpoints -Specification * A map consists of 5 characters as following.

  Find the minimum mips instruction to perform

1)    Find the minimum MIPS instruction to perform the following C statements. Use any registers for variables. Assume that the base register for array Y is in $s0.

  The first part of the project is a survey

The first part of the project is a survey (with your own words and your own way of organizing topics) of one area you want to explore in Machine Learning

  Processor do when it receives an interrupt request

What does the processor do when it receives an interrupt request from an external device? Describe the sequence of events and the signals activated.

  Compute and return to main totalrainfall and averagerainfall

It should also have two value-returning functions that compute and return to main the totalRainfall and averageRainfall.

  State and prove an s-m-n theorem for programs

State and prove an s-m-n theorem for programs. 2. Describe how the universal Turing machine locates a particular instruction on its description tape. 3. Show that the class of sets accepted by Turing machines is closed under union.

  Rewrite this statement so it makes only one comparison

Rewrite this statement so it makes only one comparison and does not use the || operator. (Hint: Use either the toUpperCase method.)

  Explain the difference between a fluorescence emission spect

Explain the difference between a fluorescence emission spectrum and a fluorescence excitation spectrum. Which more closely resembles an absorption spectrum?Why do some absorbing compounds fluoresce but others do not?

  Find the probability both windows are idle

The post office uses a multiple channel queue, where customers wait in a single line for the first available window.  the probability both windows are idle.

  What are some uses for wrapper classes

Wrapper classes are classes that surround primitive types with additional functionality. What are some uses for wrapper classes? Show some examples of how they could be used.

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