I'm currently studying for an exam which includes operating systems. I'm solving the exams from previous years and I'm stuck on a particular question:

"One of the advantages of preemptive scheduling is:"

1.Favours I/O bound processes

2.Executes more processes in a determined period of time

3.Favours CPU bound processes

4.None of the above

From what I've learned, I assume wether a particular scheduler favours I/O or CPU bound processes is the scheduler itself(and also if it's preemptive or not), so I don't think it's either 1 or 3.

Option 2 makes sense, given if you're interrupting processes to run other processes, more are executed in less time.

But it could also be the case that, giving the example of a preemptive priority scheduling, if I have two processes, P1 and P2. P1 has the highest priority and P2 the lowest. P1 arrives at time 0 and P2 at time 2 and P1 has a turnaround time of 5 units.

It doesn't make a difference if the algortihm is preemptive or not in this case for the time it takes to execute both processes.

Also, Round Robin favours CPU bound processes. Should I assume that, because Round Robin favours CPU bound, all preemptive also favour CPU bound?

What is the correct answer and why?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.