# GATE CSE 1988 | Question: 2xb

1.5k views

State any undesirable characteristic of the following criteria for measuring performance of an operating system:

Waiting time

recategorized

“Waiting time” is one of the metric for deciding the schedule of processes. If the OS tries to minimize the average waiting time of the processes it’ll follow the $\textsf{Shortest Remaining Time First}$ algorithm which though reduces the average waiting time of processes can still cause a long burst time process to $\textsf{starve.}$
ago
selected ago by
Waiting time is high when a shorter process waits for a longer process to finish(as in FIFO), or a process waits because many shorter processes keep on coming(as in SJF). Overall, such a situation is undesirable.
For better perfrmance of the os waiting time should be less of a process.It is undesirable that a process waits to get chance for cpu.
3
The question is like this "If we use waiting time as a measure to evaluate the performance of an OS, is there any undesirable effect?"
1
Hi,

If we try to optimize the performance of the system based on waiting time, then we would surely use the SRTF algorithm and we know that SRTF suffers from starvation of processes. So this could be one undesireable effect.
1 vote
Arrival time of the processes should not be same .

## Related questions

1
1.7k views
State any undesirable characteristic of the following criteria for measuring performance of an operating system: Turn around time
Consider the DFA $M$ and NFA $M_{2}$ as defined below. Let the language accepted by machine $M$ be $L$. What language machine $M_{2}$ accepts, if $F2=A?$ $F2=B?$ $F2=C?$ $F2=D?$ $M=(Q, \Sigma, \delta, q_0, F)$ $M_{2}=(Q2, \Sigma, \delta_2, q_{00}, F2)$ ... $D=\{\langle p, q, r \rangle \mid p \in Q; q \in F\}$
Consider the following Ada program: Procedure P is BAD-FORMAT: exception Procedure Q is begin ... if S/='b' then raise BAD-FORMAT end if; ... end Q; Procedure R is begin Q; exception when BAD-Format => ... handler body 1 end R; begin R; Q; exception when BAD-FORMAT => ... handler body 2 end P; Under what conditions are the two handler bodies $1$ and $2$ executed?