SlideShare une entreprise Scribd logo
1  sur  15
Understand Process Management
      : Process Control Blocks




HOME     PREVIOUS TOPIC NEXT
PREVIOUS QUESTION PAPERS FOR OS
CPP TUTORIALS




                                  1
Recap


In the last class, you have learnt

• Process, Process State Diagram

• Sequential Process




                                     2
Objectives

 On completion of this period, you would be able to
  know

• Understand the Structure of Process Control Block




                                                      3
Process Control Block

• Each process is represented in the operating
  system by a Process control block ( PCB )
• PCB is also called a Task Control Block

• PCB contains specific information associated to
  a process
• PCB consisting of various information is shown
  in next slide
                                                 4
Process Control Block ( PCB )




                                5
Process Control Block ( PCB )
Process control block consists of following information:
• Pointer
• Process state
• Process number
• Program counter
• CPU Register
• CPU-Scheduling Information
• Memory-Management Information
• Accounting Information
• I/O status Information
                                                           6
Process Control Block ( PCB )
Pointer
• It contains the address of another process which is
present in the ready queue
Process State
•It contains information about the state of the process i.e.,
   •New
   •Ready
   •Running
   •Waiting
   •Halted                                                      7
Process Control Block ( PCB )

Program counter

•The address of the next instruction to be executed

CPU Registers

•The registers vary in no. and type depending on the
type of computer architecture, they include:
   •Accumulators, index registers, stack pointers and general
   purpose registers
                                                                8
Process Control Block ( PCB )
CPU scheduling information
• This information includes
   – Process priority
   – Pointer to scheduling queues
   – Other scheduling parameters

Memory management information
• This information includes
   – Value of base and limit registers
   – Page tables
   – Segment tables                        9
Process Control Block ( PCB )

Accounting information:
•This information includes
   •Amount of CPU and real time used
   •Time limits
   •Account numbers
   •Job or Process no.s etc.
I/O status information
•This information includes
   •List of I/O devices allocated to the process
   •List of open files, etc
                                                   10
CPU Switch from Process to Process
    Process 0                                         Process 1

executing
                             Save state into PCB0


                                                             idle


                            Reload state from PCB1

            idle   Interrupt or system call               executing


                              Save state into PCB1


                                                               idle

                             Reload state from PCB0
executing

                                                                    11
Summary

In this class, you have learnt

• The structure of a Process Control Block

• Various pieces of information associated with a specific
  process
• The sequence of activities that occur when CPU
  switches from process to process


                                                      12
Quiz
1. PCB stands for process control board
  a) True
  b) False
2.Process control block does not contain any
    information about process state .
  a) True
  b) False
3.The information stored in a PCB varies from
    process to process.
  a) True
  b) False
                                                13
Frequently Asked Questions


1. Explain the structure of a process control

    block with the help of a diagram.




                                                14
Other subject materials
•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home

Contenu connexe

Tendances

Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process SchedulingShipra Swati
 
OS Process Synchronization, semaphore and Monitors
OS Process Synchronization, semaphore and MonitorsOS Process Synchronization, semaphore and Monitors
OS Process Synchronization, semaphore and Monitorssgpraju
 
Operating system structures
Operating system structuresOperating system structures
Operating system structuresMohd Arif
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System CallsVandana Salve
 
Operating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphoresOperating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphoresVaibhav Khanna
 
Memory organization
Memory organizationMemory organization
Memory organizationDhaval Bagal
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's typesNishant Joshi
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating systemRafi Dar
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its conceptsKaran Thakkar
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structuresMukesh Chinta
 
Deadlock Avoidance - OS
Deadlock Avoidance - OSDeadlock Avoidance - OS
Deadlock Avoidance - OSMsAnita2
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithmssathish sak
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer programAbhay Kumar
 

Tendances (20)

Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
 
OS Process Synchronization, semaphore and Monitors
OS Process Synchronization, semaphore and MonitorsOS Process Synchronization, semaphore and Monitors
OS Process Synchronization, semaphore and Monitors
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System Calls
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Operating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphoresOperating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphores
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's types
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
Deadlock Avoidance - OS
Deadlock Avoidance - OSDeadlock Avoidance - OS
Deadlock Avoidance - OS
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithms
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer program
 

En vedette

11 process definition
11 process definition11 process definition
11 process definitionmyrajendra
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loadingmyrajendra
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocksmyrajendra
 
Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)myrajendra
 

En vedette (6)

9 cm402.13
9 cm402.139 cm402.13
9 cm402.13
 
11 process definition
11 process definition11 process definition
11 process definition
 
23 deadlock
23 deadlock23 deadlock
23 deadlock
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loading
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocks
 
Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)
 

Similaire à 12 process control blocks

11 process definition
11 process definition11 process definition
11 process definitionmyrajendra
 
Process control block(PCB)
Process control block(PCB)Process control block(PCB)
Process control block(PCB)Sujata Yadav
 
Process Control Block.pptx
Process Control Block.pptxProcess Control Block.pptx
Process Control Block.pptxSayedAbdullah31
 
Chapter 02 modified
Chapter 02 modifiedChapter 02 modified
Chapter 02 modifiedJugal Doshi
 
Process Concepts (voice over ppt)
Process Concepts (voice over ppt)Process Concepts (voice over ppt)
Process Concepts (voice over ppt)Kaushik Ghosh
 
Basic concept of process
Basic concept of processBasic concept of process
Basic concept of processNabin Dahal
 
Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdfAmanuelmergia
 
PCB_6609.pptx
PCB_6609.pptxPCB_6609.pptx
PCB_6609.pptxTSaiteja2
 
PCB_6609.pptx
PCB_6609.pptxPCB_6609.pptx
PCB_6609.pptxTSaiteja2
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxAmanuelmergia
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxAmanuelmergia
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)WajeehaBaig
 

Similaire à 12 process control blocks (20)

11 process definition
11 process definition11 process definition
11 process definition
 
Process control block(PCB)
Process control block(PCB)Process control block(PCB)
Process control block(PCB)
 
Process Control Block.pptx
Process Control Block.pptxProcess Control Block.pptx
Process Control Block.pptx
 
Chapter 02 modified
Chapter 02 modifiedChapter 02 modified
Chapter 02 modified
 
Lecture5
Lecture5Lecture5
Lecture5
 
Process Concepts (voice over ppt)
Process Concepts (voice over ppt)Process Concepts (voice over ppt)
Process Concepts (voice over ppt)
 
process control block
process control blockprocess control block
process control block
 
process control block
process control blockprocess control block
process control block
 
Basic concept of process
Basic concept of processBasic concept of process
Basic concept of process
 
Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdf
 
3 process management
3 process management3 process management
3 process management
 
PCB_6609.pptx
PCB_6609.pptxPCB_6609.pptx
PCB_6609.pptx
 
PCB_6609.pptx
PCB_6609.pptxPCB_6609.pptx
PCB_6609.pptx
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
 
Chapter03
Chapter03Chapter03
Chapter03
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptx
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
The process states
The process statesThe process states
The process states
 
Chap3.ppt
Chap3.pptChap3.ppt
Chap3.ppt
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)
 

Plus de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

12 process control blocks

  • 1. Understand Process Management : Process Control Blocks HOME PREVIOUS TOPIC NEXT PREVIOUS QUESTION PAPERS FOR OS CPP TUTORIALS 1
  • 2. Recap In the last class, you have learnt • Process, Process State Diagram • Sequential Process 2
  • 3. Objectives On completion of this period, you would be able to know • Understand the Structure of Process Control Block 3
  • 4. Process Control Block • Each process is represented in the operating system by a Process control block ( PCB ) • PCB is also called a Task Control Block • PCB contains specific information associated to a process • PCB consisting of various information is shown in next slide 4
  • 6. Process Control Block ( PCB ) Process control block consists of following information: • Pointer • Process state • Process number • Program counter • CPU Register • CPU-Scheduling Information • Memory-Management Information • Accounting Information • I/O status Information 6
  • 7. Process Control Block ( PCB ) Pointer • It contains the address of another process which is present in the ready queue Process State •It contains information about the state of the process i.e., •New •Ready •Running •Waiting •Halted 7
  • 8. Process Control Block ( PCB ) Program counter •The address of the next instruction to be executed CPU Registers •The registers vary in no. and type depending on the type of computer architecture, they include: •Accumulators, index registers, stack pointers and general purpose registers 8
  • 9. Process Control Block ( PCB ) CPU scheduling information • This information includes – Process priority – Pointer to scheduling queues – Other scheduling parameters Memory management information • This information includes – Value of base and limit registers – Page tables – Segment tables 9
  • 10. Process Control Block ( PCB ) Accounting information: •This information includes •Amount of CPU and real time used •Time limits •Account numbers •Job or Process no.s etc. I/O status information •This information includes •List of I/O devices allocated to the process •List of open files, etc 10
  • 11. CPU Switch from Process to Process Process 0 Process 1 executing Save state into PCB0 idle Reload state from PCB1 idle Interrupt or system call executing Save state into PCB1 idle Reload state from PCB0 executing 11
  • 12. Summary In this class, you have learnt • The structure of a Process Control Block • Various pieces of information associated with a specific process • The sequence of activities that occur when CPU switches from process to process 12
  • 13. Quiz 1. PCB stands for process control board a) True b) False 2.Process control block does not contain any information about process state . a) True b) False 3.The information stored in a PCB varies from process to process. a) True b) False 13
  • 14. Frequently Asked Questions 1. Explain the structure of a process control block with the help of a diagram. 14
  • 15. Other subject materials • Web designing • Micro processors • C++ tutorials • java home