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

  Categorize the point-of-sale system in supermarket

Categorize the following systems and explain your classification: A point-of-sale system in a supermarket, A system which sends out reminders that magazine subscriptions are due to be paid.

  How the above code actually accomplishes recursion

How does the recursion end - as a concrete example, what happens for ten factorial as the nal returned value is being computed and why does the recursion stop?

  How repeated measurement enhanced accuracy

Assume that hypothesis to be tested was that girls are taller than boys. This time boy and the girl were each measured 30 times with ruler which read to 1,400 of an inch.

  Identify five different it systems

Identify five different IT systems that have affected business in the past few years. For each system, briefly note the following: · A name for the system

  How applications of technology used to overcome barrier

Explain how applications of technology could be used as the means to overcome each of these barriers. Write at a minimum the applications which use word processing.

  Discuss some options for mobile wireless

Please discuss some options for mobile wireless internet connection, and describe the types of hardware that would be involved in making such a connection

  Http server may initiate interaction client true or false

In HTTP, a server may initiate an interaction with the client. a)Answer True b)False

  Is anyone familiar with oracle

Is anyone familiar with Oracle 11g, 2E, Joan "Casteel Chapter5 Procedures

  Write one java statement that creates an array of integers

Write one Java statement that creates an array of integers containing the multiples of 10 between 10 and 100, including 10 and 100.

  System development methodologies in information systems

There are literally thousands of system development methodologies in the Information Systems field. Suggest some reasons why there might be so many.

  What opportunities enabled team to accomplish its goals

What motivational theories do you think could have been used to encourage the team to be more successful? What specific rewards or opportunities would have enabled the team to accomplish its goals? Why?

  Write a program that calculates the total cost of gasoline

Write a program that calculates the total cost of gasoline.

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