1.

Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________(a) Running state(b) Ready state(c) Suspended state(d) Terminated stateThis question was addressed to me during an internship interview.I would like to ask this question from Process Scheduling Queues topic in chapter Processes of Operating System

Answer»

The correct answer is (b) READY state

Easy explanation - Suppose that a PROCESS is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the ready state. Process never goes directly to the RUNNING state from the waiting state. Only PROCESSES which are in ready state go to the running state whenever CPU allocated by operating system.



Discussion

No Comment Found

Related InterviewSolutions