204k views
3 votes
In a batch operating system, three jobs JOBI, JOB2, JOB3 are submitted for ex- ecution. Each job involves an I/O activity, a CPU time, and another 1/0 activity. JOB1 requires a total of 21 ms, with 3 ms CPC time. JOB2 requires 29 ms total time with 5 ms CPU time. JOB3 requires 14 ms total time with 4 is CPU time. 3.1 What will be the CPU utilisation for uniprogramming? Write down all interme diate steps. 3.2 What will be the CPU utilisation for multiprogramming? Write down all inter- mediate steps

1 Answer

4 votes

Answer:

The answer to this question can be defined as follows:

In option 1, the answer is "18.75%".

In option 2, the answer is "33%".

Step-by-step explanation:

Given:

JOB 1-Time of the CPU = 3ms, rest = 18ms, sum = 21

JOB 2-Time of the CPU = 5ms, rest = 24ms, sum = 29

JOB 3 -Time of the CPU =4ms, rest = 10ms, sum = 14

In option 1:

whenever the job has also been allocating the system, in the uni-programs system, which looks at the CPU until it is complete.

Formula:


\text{Utilization of CPU} =\frac{ \text{total time of CPU} }{ \text{full real time}}


=((3+5+4))/((21+29+14))


=(12)/(64)\\\\= 0.1875\\\\=18.75%

In option 2:

However, if any software is interested in other operations like I / o, it can assign to the CPU Processor to others Systems and other software may be carrying out I / o operations there while the processor is with any other application.

Formula:


\text{Utilization of CPU} =\frac{ \text{total time of CPU} }{ \text{full real time}}


=(12)/(36)\\\\=(1)/(3)\\\\=.33\\\\= 33 \%

User YellowAfterlife
by
4.1k points