Process
Control Block
This Photo by Unknown author is licensed under CC BY-SA.
Process Control
Block
• The process control
block represents a process in the
operating system. A process
control block is also known as a
task control block. It’s a
repository of information
associated with a
specific process.
Location
PCB must be kept in an area of memory protected from normal process
access. In some operating systems the PCB is placed at the bottom of the
process stack.
Role of PCB
Structure of Process Control Block
Process ID
Process State
Process Privileges
Accounting information
Program Counter
CPU registers
CPU Scheduling Information
I/O status information
Pointer
• Process ID: When a new process is created by
the user, the operating system assigns a unique
ID i.e a process ID to that process.
• Process State: A process, from its creation to
completion goes through different states.
Generally, a process may be present in one of
the 5 states during its execution
• Process Privileges: This allows/disallows access
to system resources.
• Accounting Information: This attribute gives
the information of the resources used by that
process in its lifetime. For Example: CPU time
connection time, etc.
• Program Counter: The program counter is a
pointer that points to the next instruction in the
program to be executed.
• CPU Registers: A CPU register is a quickly
accessible small-sized location available to the
CPU. These registers are stored in virtual
memory(RAM).
• CPU Scheduling Information: Stores process
priority and other scheduling information
necessary for scheduling a process
• I/O status information: In this field, the list of
all the input/output devices which are required by
that process during its execution is mentioned.
• Pointer: This field contains the address of the
next PCB, which is in ready state.
5 marks ajayenge ab
Bye Bye!

Process Control Block.pptx

  • 1.
    Process Control Block This Photoby Unknown author is licensed under CC BY-SA.
  • 2.
    Process Control Block • Theprocess control block represents a process in the operating system. A process control block is also known as a task control block. It’s a repository of information associated with a specific process.
  • 3.
    Location PCB must bekept in an area of memory protected from normal process access. In some operating systems the PCB is placed at the bottom of the process stack.
  • 4.
  • 5.
    Structure of ProcessControl Block Process ID Process State Process Privileges Accounting information Program Counter CPU registers CPU Scheduling Information I/O status information Pointer
  • 6.
    • Process ID:When a new process is created by the user, the operating system assigns a unique ID i.e a process ID to that process. • Process State: A process, from its creation to completion goes through different states. Generally, a process may be present in one of the 5 states during its execution • Process Privileges: This allows/disallows access to system resources. • Accounting Information: This attribute gives the information of the resources used by that process in its lifetime. For Example: CPU time connection time, etc.
  • 7.
    • Program Counter:The program counter is a pointer that points to the next instruction in the program to be executed. • CPU Registers: A CPU register is a quickly accessible small-sized location available to the CPU. These registers are stored in virtual memory(RAM). • CPU Scheduling Information: Stores process priority and other scheduling information necessary for scheduling a process • I/O status information: In this field, the list of all the input/output devices which are required by that process during its execution is mentioned. • Pointer: This field contains the address of the next PCB, which is in ready state.
  • 8.
    5 marks ajayengeab Bye Bye!