Process Control Block - Included Information

Included Information

Implementations differ, but in general a PCB will include, directly or indirectly:

  • The identifier of the process (a process identifier, or PID)
  • Register values for the process including, notably, the program counter and stack pointer values for the process.
  • The address space for the process
  • Priority (in which higher priority process gets first preference. e.g., nice value on Unix operating systems)
  • Process accounting information, such as when the process was last run, how much CPU time it has accumulated, etc.
  • Pointer to the next PCB i.e. pointer to the PCB of the next process to run
  • I/O Information (i.e. I/O devices allocated to this process, list of opened files, etc.)

During context switch, the running process is stopped and another process is given a chance to run. The kernel must stop the execution of the running process, copy out the values in hardware registers to its PCB, and update the hardware registers with the values from the PCB of the new process.

A process in an operating system is represented by a data structure known as a process control block (PCB) or process descriptor. The PCB contains important information about the specific process including

  • The current state of the process i.e., whether it is ready, running, waiting etc.
  • Unique identification of the process in order to track "which is which" information.
  • A pointer to parent process.
  • Similarly, a pointer to child process (if it exists).
  • The priority of process (a part of CPU scheduling information).
  • Pointers to locate memory of processes.
  • A register save area.
  • The processor it is running on.

The PCB is a certain store that allows the operating systems to locate key information about a process. Thus, the PCB is the data structure that defines a process to the operating systems.

Read more about this topic:  Process Control Block

Famous quotes containing the words included and/or information:

    People accept a representation in which the elements of wish and fantasy are purposely included but which nevertheless proclaims to represent “the past” and to serve as a guide-rule for life, thereby hopelessly confusing the spheres of knowledge and will.
    Johan Huizinga (1872–1945)

    Information networks straddle the world. Nothing remains concealed. But the sheer volume of information dissolves the information. We are unable to take it all in.
    Günther Grass (b. 1927)