Redirected
4,244 views
4 votes
4 votes
A process spends 30% of its execution time waiting for completion of I/O operation. If there are 5 processes in memory at once, then the probability of CPU time utilized is _______ %. (Assume all I/O operations are overlapped). (Upto 2 decimal places)

2 Answers

Best answer
7 votes
7 votes
n = total number of processes

p = fraction of time a process is waiting for I/O

Probability (all processes waiting for I/O) = $p^n$

CPU utilization = 1 – $p^n$

Suppose that a process spends a fraction p of its time in I/O wait state. With n processes in memory at once, the probability that all processes are waiting for I/O is $p^n$ .

The CPU utilization then given by the formula CPU utilization = 1 - $p^n$ . where n is called the degree of multiprogramming.

 

Here we are talking in terms of fraction, if no process is waiting for I/O, then CPU Utilization=1 means 100% CPU is utilized
selected by
0 votes
0 votes

Let required burst time per process = x

Waiting time for a process = 30% of x = $\frac{30}{100} $ x= $\frac{3}{10}$ = 0.3 x

if all operations are not overlapped then

total waiting time = no.of processes * Waiting time for a process = 5 * 0.3x = 1.5 x

total required time (cpu usage + waiting time) = 5x + 1.3 x

if all operations are overlapped then (assuming running operations also overlapped)

total waiting time = Waiting time for a process = 0.3x

total required time (cpu usage + waiting time) = x + 0.3 x

probability of CPU time utilized is ( all operations are overlapped )= $\frac{x-0.3x}{x+0.3x} $ =  $\frac{0.7 x}{1.3x} $ =  $\frac{7}{13} $

Related questions

0 votes
0 votes
1 answer
2