Question: Q1 ) (Degree of Multiprogramming) A computer system has enough room to hold five programs in its main memory. In the below table, you are

Q1 ) (Degree of Multiprogramming) A computer system has enough room to hold five programs in its main memory.  In the below table, you are given these processes, their computation (CPU) and I/O times. Assume that at one point in time all processes are being executed, and assume that processes are independent. Answer the following questions.

Process ID
CPU Use
I/O Use
P1
50
50
P2
25
75
P3
25
75
P4
75
25
P5
50
50

a) Assuming all processes are independent  what is the CPU utilization on a single CPU system? (Hint: CPU is utilized if one of the programs is being executed and not waiting I/O)

b) Assuming all processes are independent  what is the CPU utilization on a two-CPU system? (Hint: A fully CPU-utilized system should have two processes executing in the two CPUs at any time, if a single CPU is idle, the system has 50% CPU utilization)

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To calculate CPU utilization we need to determine how much time the CPU is busy executing processes compared to the total time taken by all the processes Given the data Process ID CPU Use IO Use P1 CP... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!