3 votes 3 votes A process in which of the following state is best suited for swapping into main memory? (A) Ready Suspended (B) Blocked Suspended (C) Running (D) Blocked Operating System process-scheduling operating-system test-series + – Hardi Shah asked Dec 27, 2015 Hardi Shah 2.2k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Sandeep Singh commented Dec 27, 2015 reply Follow Share (A) Ready Suspended 0 votes 0 votes Hardi Shah commented Dec 27, 2015 reply Follow Share I thought the same but ans given is block suspended by gate forum series. Could you please provide any justification for your ans ? 0 votes 0 votes Sara commented Dec 28, 2015 reply Follow Share Blocked suspend:The process is in secondary memory awaiting an event Ready Suspend:The process is in secondary memory and availaible for execution as soon as it is loaded into main memory. Option A ready suspended ryt?? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes I think both suspend ready and suspend wait is correct as both signifies that the process is in the secondary memory and hence from this state only its best suited to swap it back into the main memory! Rohit Mallik answered Dec 27, 2015 Rohit Mallik comment Share Follow See 1 comment See all 1 1 comment reply cse23 commented May 25, 2016 reply Follow Share BLOCKED then SUSPEND BLOCKED → If a process in the RUNNING state requires more memory, then at least one BLOCKED process can be swapped out of memory onto disk. The transition can also be made for the BLOCKED process if there are READY processes available, and the OS determines that the READY process it would like to dispatch requires more main memory to maintain adequate performance. SUSPEND BLOCKED then SUSPEND READY A process in the SUSPEND BLOCKED state is moved to the SUSPEND READY state when the event for which it has been waiting occurs. Note that this requires the state information concerning suspended processes be accessible to the OS. SUSPEND READY then READY When there are no READY processes in main memory, the OS will need to bring one in to continue execution. In addition, it might be the case that a process in the READY SUSPEND state has higher priority than any of the processes in the READY state. In that case, the OS designer may dictate that it is more important to get at the higher priority process than to minimise swapping. SUSPENDED but READY Normally, the OS would be designed so that the preference would be to suspend a BLOCKED process rather than a READY one. 0 votes 0 votes Please log in or register to add a comment.