Process Life Cycle

Process Life Cycle

The process life cycle can be defined by a state diagram. Which has states representing the execution status of process at various time and transitions. That shows the changes in the execution status. To maintain the management information about a process the operating system uses the process control block (PCB).

process control block (PCB)

The process control block is also known as task control block. PCB contains various kind of information about a particular process such as.

  • Process state
  • Program counter
  • CPU registers
  • CPU scheduling information
  • Memory management information
  • Accounting information
  • I/O status information

A process is normally more than just program code which is often called as text section. It also contains the current activity. Which is implied by the value of program counter and the contents of the processor’s register. A process generally includes process stake and data section. Stack and data section contains the temporary data and global variables. Process also includes a heap which is basically a memory space what is dynamically allocated during the process run time.

process in memory

A process changes its state during its execution which is called the process life cycle. A process life cycle consists of five stages which are:

  • New
  • Running
  • Waiting
  • Ready
  • Terminated

process life cycle

Sate Description
New The process which is being created
Running Instructions being executed
Waiting The process is waiting for an event to get occur
Ready The process is waiting to be assigned to a processor
Terminated The process completed its execution

These names of the states are uninformed and they vary across operating system. These stats are mostly found on all systems but some operating systems also more finely define process states. Processer can hold only one process at a time simply it can be running one process at a time. However, many processes may be ready or waiting.

Read more about Process Termination

Birthday Wishes

admin

We are a team of writers, researchers, and editors who are passionate about helping others live their best lives. We believe that life is a beautiful gift. We try to live our lives to the fullest and enjoy every moment. We are always learning and growing, and we cherish the relationships we have with our family and friends.

Leave a Reply