
Waiting State : The process is waiting for some event to occur.
Ready State :The process is waiting to be assigned to a processor.
The Central Processing Unit (CPU) is only capable of handling one process at a time. Processes that are ready for the CPU are kept in a queue for "ready" processes. Other processes that are waiting for an event to occur, such as loading information from a hard drive or waiting on an internet connection, are not in the ready queue.
From the READY to WAITING and from the WAITING to RUNNING, no transition would happen because:
In this part of the process, the ready state must be prepared in all aspects. If disturbed as per undergoing transition, ready state might be affected and its job maybe interrupted. So ready state must be ready in every aspect for an effective use of the processor or the Central Processing Unit (CPU). Like in the waiting state, transition is also a no no mainly because it is in a waiting state which basically means it has to keep waiting or standby for its job to come--waiting for peripheral device's response that must be received before the CPU can be effectively used again. In an instance, if a job in the ready state cannot continue because a required device failed, then the job couldn't proceed and will be sent back to the hold state not in the waiting state.
A ready queue or run queue is used in computer scheduling. Modern computers are capable of running many different programs or processes at the same time.
No comments:
Post a Comment