Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Identify the circumstances under which pre-emptive CPU scheduling is used:

(a) A process switches from Running state to Ready state
(b) A process switches from Waiting state to Ready state
(c) A process completes its execution
(d) A process switches from Ready to Waiting state






Solution

Pre-emptive scheduling is used when the currently running process can be interrupted and CPU can be given to another process.

Statement (a) is correct because when a process moves from Running to Ready state, CPU is taken away from it.

Statement (b) is also correct because when a process moves from Waiting to Ready state, it may have higher priority and may preempt the current process.

Statement (c) is not preemption because the process completes naturally.

Statement (d) is not a valid normal transition for preemption.

So, correct statements are:

(a) and (b)



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...