Process Management Report
Process Management Report
Management
Overview:
What is a Process?
• A process is the instance of computer program that is being
executed.
• It performs all task that is present in the program.
• When a program is running, it is called as process.
COMPILER
Hello.class Secondary
(PRPGRAM) Memory
Hello.java
Secondary
Memory
Main
CPU Memory
Process management
❑ It is an important part of the operating system. It
allows you to control the way your computer runs by
managing the currently active processes. This includes
ending processes that are no longer needed, setting
process priorities, and more.
❑ There are several processes in the process management
system that use the same shared resources. As a
result, the operating system must efficiently and
effectively manage all activities and structures.
Process management
❑To preserve consistency, some elements may need to be executed
by one operation at a time. Otherwise, the system might be
inconsistent and deadlock may develop.
In terms of Process Management, the operating system is in
charge of the following task.
• Process and schedule on CPU.
• Both user and system processes can be created and
deleted.
• Process are suspended and resumed.
• Providing synchronization method for processes.
• Providing communication mechanism for processes.
Process State
• New State –This is the first state of the process life cycle. When
process creation is taking place, the process is in a new state
• Ready State –When the process creation gets completed, the
process comes into a ready state. During this state, the process
is loaded into the main memory and will be placed in the queue
of processes which are waiting for the CPU allocation.
• Running State – Whenever the CPU is allocated to the process
from the ready queue, the process state changes to Running.
• Block or Wait State – When the process is executing the
instructions, the process might require carrying out a few tasks
which might not require CPU. If the process requires performing
Input-Output task or the process needs some resources which
are already acquired by other processes, during such conditions
process is brought back into the main memory, and the state is
changed to Blocking or Wait for the state. Process is placed in
the queue of processes that are in waiting or block state in the
main memory.
• Terminated or Completed – When the entire set of instructions
is executed and the process is completed. The process is
changed to terminated or completed state. During this state the
PCB of the process is also deleted.
It’s possible that the process is waiting or blocked state can
be swapped out to secondary memory. Let’s understand in which
state process in waiting or block state will go.