1 Process Concept
1 Process Concept
1
Prerequisite of Topic
• They are read from the primary memory and executed by the kernel.
• They also generate one or more child processes, and they die like a
human being.
Text section
Data section
Heap
Stack
<SELO: 5,8,9>
Process States
• Processes in the operating system can be in any of the following
states:
• NEW- The process is being created.
• READY- The process is waiting to be assigned to a processor.
• RUNNING- Instructions are being executed.
• WAITING- The process is waiting for some event to occur(such as an
I/O completion or reception of a signal).
• TERMINATED- The process has finished execution.
• There is a Process Control Block for each process, enclosing all the
information about the process. It is a data structure, which contains the
following:
<SELO: 5,8,9>
Location of the Process Control Block
• The process control block is kept in a memory area that is protected from
the normal user access.
• Some of the operating systems place the PCB at the beginning of the
kernel stack for the process as it is a safe location.