Suppose we have four jobs in a computer system, in the order JOB1, JOB2, JOB3 and JOB4. JOB1 requires 8 s of CPU time and 8 s of I/O time; JOB2 requires 4 s of CPU time and 14 s of disk time; JOB3 requires 6 s of CPU time; and, JOB4 requires 4 s of CPU time and 16 s of printer time. Define the following quantities for system utilization: • Turnaround time = actual time to complete a job • Throughput = average number of jobs completed per time period T • Processor utilization = percentage of time that the processor is active (not waiting) Compute these quantities (with illustrations if needed) in each of the following systems: a. A uniprogramming system, whereby each job executes to completion before the next job can start its execution. b. A multiprogramming system that follows a simple round-robin scheduling. Each process gets 2 s of CPU time turn-wise in a circular manner.

Answers

Answer 1

Answer:

Explanation:

a. Uniprogramming System:

Turnaround Time: For JOB1, the turnaround time is 16 s (8 s CPU time + 8 s I/O time). For JOB2, the turnaround time is 18 s (4 s CPU time + 14 s disk time). For JOB3, the turnaround time is 6 s (6 s CPU time). For JOB4, the turnaround time is 20 s (4 s CPU time + 16 s printer time).

Throughput: In a uniprogramming system, the throughput is equal to 1 job per time period, as only one job can be processed at a time.

Processor Utilization: For JOB1, the processor utilization is 8/16 = 50%. For JOB2, the processor utilization is 4/18 = 22.2%. For JOB3, the processor utilization is 6/6 = 100%. For JOB4, the processor utilization is 4/20 = 20%.

b. Multiprogramming System:

Turnaround Time: For JOB1, the turnaround time is 24 s (8 s CPU time + 8 s I/O time + 8 s waiting). For JOB2, the turnaround time is 24 s (4 s CPU time + 14 s disk time + 6 s waiting). For JOB3, the turnaround time is 16 s (6 s CPU time + 10 s waiting). For JOB4, the turnaround time is 32 s (4 s CPU time + 16 s printer time + 12 s waiting).

Throughput: In a multiprogramming system, the throughput is equal to 4 jobs per time period, as all four jobs can be processed concurrently.

Processor Utilization: For JOB1, the processor utilization is 8/24 = 33.3%. For JOB2, the processor utilization is 4/24 = 16.7%. For JOB3, the processor utilization is 6/16 = 37.5%. For JOB4, the processor utilization is 4/32 = 12.5%.

Answer 2

Here are the turnaround time, throughput, and processor utilization for the four jobs in a uniprogramming and round-robin system:

Uniprogramming

Turnaround time:

JOB1: 16 s

JOB2: 22 s

JOB3: 12 s

JOB4: 20 s

Throughput: 1 job/16 s

Processor utilization: 50%

Round-Robin

Turnaround time:

JOB1: 18 s

JOB2: 14 s

JOB3: 10 s

JOB4: 18 s

Throughput: 2 jobs/16 s

Processor utilization: 62.5%

The difference in turnaround time between the two systems is due to the fact that in a uniprogramming system, the CPU is idle while a job is waiting for I/O. In a round-robin system, the CPU is always running, even if it is only running a short burst of code for another job.

The difference in throughput between the two systems is also due to the fact that in a round-robin system, the CPU is always running, so more jobs can be completed in a given amount of time.

The processor utilization is higher in a round-robin system because the CPU is not idle as often. However, the turnaround time is also higher because the jobs have to share the CPU.

Read more about throughput here:

https://brainly.com/question/28390124

#SPJ2


Related Questions

how many grams of water can be heated from 10 degrees to 45 degrees using 20,500 joules of energy

Answers

Therefore, 20,500 Joules of energy can heat 1,104.3 grams of water from 10 degrees Celsius to 45 degrees Celsius.

Specific heat capacity

Calculate the energy (in Joules) required to heat 1 gram of water from 10 degrees Celsius to 45 degrees Celsius:

Q = m * c * ΔT

Q = 1 gram * 4.184 Joules/gram-degree Celsius * (45 - 10) degrees Celsius

Q = 18.47 Joules

Calculate the amount of water (in grams) that can be heated with 20,500 Joules of energy:

20,500 Joules / 18.47 Joules = 1,104.3 grams

Learn more about Specific heat capacity here:

https://brainly.com/question/27991746

#SPJ1

Other Questions
when consumers associate a brand with a certain level of quality and familiar attributes, consumers are able to make quick decisions. in this situation, the branda.Established noveltyb.Is the only one the consumer will considerc.Facilitates purchasingd.Reduces delivery costsCreates brand reputation Can 3 feet, 3 feet and 7 feet create a triangle explain why or why not what does the phrase closing the American frontier mean Best Practice Guidelinessuggests that a group leader contact a group memberthat drops out with each of the following goals except toO discuss reasons for premature closure with other group membersO say good-bye to the remaining group membersO use pressure to have the member remain in groupO discuss the benets and liabilities of staying in group CAPM. The Capital Asset Pricing Model (CAPM) is a financial model that assumes returns on a portfolio are normally distributed. Suppose a portfolio had an average annual rate of return of 14.7% (i.e an average gain of 14.7%) with a standard deviation of 33%. A return of 0% means the value of the portfolio doesn't change, a negative return means that the portfolio loses money, and a positive return means that the portfolio gains money. What percent of years does the portfolio lose money, i.e. have a return less than 0% What is the cutting for the highest 27% of annual returns with this portfolio? the cells that deposit new bone tissue are the ______. What is the difference between the longest andshortest pieces of scrap wood? According to the website, which countries did Hitler start planning for after the defeat of France? Which word could best combine these two sentences from the passage? I had always been interested in painting. I didn't think I had the ability to do it well. A. and B. since C. because D. but Imagine that 3 committee members arrive late. The other 5 memebers have already shaken hands. How many handshakes will there be when the 3 late members arrive? true or false bone completely encased in connective tissue such as tendon or ligament, for example, the patella (kneecap). True or False: The concept of "circular causality" is less concerned with where the conflict started and more concerned with the sequence of patterns in the conflict. when one stationary object is replaced by another stationary object, the change between the two objects maybe perceived as the movement of a single object. this creates? Which of the following romantic qualities is best shown in the section of TheTask titled A Landscape Described, Rural Sounds?A. Interest in the Natural WorldB. SupernaturalismC. Liberty and Freedom (Translations LC)Use the graph to answer the question.Graph of polygon ABCD with vertices at 1 comma negative 1, 3 comma negative 5, 7 comma negative 5, 5 comma negative 1. A second polygon A prime B prime C prime D prime with vertices at 1 comma negative 6, 3 comma negative 10, 7 comma negative 10, 5 comma negative 6.Determine the translation used to create the image. 5 units down 5 units up 1 unit down 1 unit up factorise completely[tex]3x-12xy Which statement about Mahmouds family is best supported by the text? after a client shares his or her dsm diagnosis with others, people may treat the client differently, and the client may act accordingly. many theorists would attribute this to the development of: group of answer choices generalized anxiety. a self-fulfilling prophecy. a somatic symptom disorder, as opposed to a psychiatric disorder. a crisis of faith. With respect to creating visions, leaders often fail because they do not? a. have fancy enough visions. b. convert their visions into results. c. use visions for inspiration. d. bribe people for accomplishing a vision if an economic integration has factor mobility, free move of product, labor, and capital, it should be .