Professional Documents
Culture Documents
Process Model Life Cycle
Process Model Life Cycle
Salahuddin Shaikh
CYCLE
CONTENT
Process model lifecycle
Multitasking, multiprocessing, multi-threading
Process & threads
User level threads & kernel level threads
PROCESS MODEL LIFECYCLE
A process is essentially running software. The execution of
any process must occur in a specific order. A process refers to
an entity that helps in representing the fundamental unit of
work that must be implemented in any system.
In other words, we write the computer programs in the form of
a text file, thus when we run them, these turn into processes
that complete all of the duties specified in the program.
PROCESS MODEL LIFECYCLE
When a process runs, it goes through many states. Distinct
operating systems have different stages, and the names of these
states are not standardized. In general, a process can be in one
of the five states listed below at any given time.
PROCESS MODEL LIFECYCLE
PROCESS MODEL LIFECYCLE
PROCESS MODEL LIFECYCLE
1. NEW STATE:
Conditions for Transition:
When a process is started/created first, it is in this state.
A process enters the New state when it is initially created by
the operating system.
Activities in the State:
In the New state, the operating system allocates resources to
the process, initializes its data structures, and prepares it for
execution.
2. READY STATE:
Conditions for Transition:
A process moves to the Ready state when it has been created and is awaiting
CPU time for execution.
This can happen after the process is initially loaded into memory or when it
becomes ready to execute after being blocked or after voluntarily giving up
the CPU.
Activities in the State:
While in the Ready state, the process is waiting for the CPU scheduler to
allocate CPU time. It is prepared for execution, and its context is stored,
allowing for a quick transition to the Running state.
3. RUNNING STATE:
Conditions for Transition:
A process enters the Running state when the CPU scheduler
allocates CPU time to it from the pool of ready processes.
Activities in the State:
In the Running state, the process is actively executing
instructions on the CPU. It continues its computations until it
voluntarily releases the CPU or gets preempted by the
scheduler.
4. BLOCKED STATE:
Conditions for Transition:
A process transitions to the Blocked state when it is waiting for
an event (e.g., I/O operation completion, resource availability)
that will allow it to proceed.
Activities in the State:
While in the Blocked state, the process cannot make progress
until the specified event occurs. The operating system may
suspend the process, freeing up system resources until the event
triggers a transition back to the Ready state.
5. EXIT STATE (TERMINATED):
Conditions for Transition:
A process enters the Exit state when it completes its execution
or is terminated by the operating system.
Activities in the State:
In the Exit state, the operating system releases all resources
allocated to the process, updates process accounting
information, and ensures a graceful termination. The process
may also return an exit status that can be used by the parent
process or the system.
SUSPEND READY: