Posts

Showing posts with the label block

Operating Systems | States of Process and Operations

A process from its creation to completion goes through various stages in order to complete the works defined on it. Each of these stages are known as states of a process. States of a Process New It is a condition just before the transition from as a program in the secondary memory to a process in the main memory. Ready The processes which are ready on main memory and not forwarded(scheduling) into central processing system can be said in Ready state. There can be more one process present in ready state which will be allocated to processing unit. The order, in which each of them will get executed will depend on the nature of scheduling algorithm used. Basically scheduling algorithms are of two types: Preemptive algorithms : Scheduling algorithms with ability to suspend the process during the execution. Preemptive algorithms switches between process is also known as context switching, since PCB(context) has to be saved to resume preempted processes. ...