SlideShare a Scribd company logo
1 of 23
Understand Process Management
Process definition, Process state
  diagram , Sequence of process



HOME     PREVIOUS TOPIC NEXT
PREVIOUS QUESTION PAPERS FOR OS
CPP TUTORIALS




                                    1
Recap


In the last class, you have learnt about
• Definition of system call

• Types of system calls

• Single user operating system structure

• Multiuser operating system structure

                                           2
Objectives

On completion of this period, you would be able
to know
• Definition of a Process
• Process State Diagram
• Sequence of Process


                                              3
Process

• A Process is a program in execution
• A process is more than a program code, some times also
       known as text section
• A process includes the current activity, as represented
by the program counter and the contents of the
processors registers


                                                       4
Process

• A process also includes the process stack, which
   contains temporary data & data section which
   contains global variables
• Program by itself is not a Process
• Program is a Passive Entity
      • Ex. A file stored on a disk



                                                     5
Process

• Process is an active entity
  • Ex. Program counter specifies the next
    instruction to execute and set of associated
    resources
• Process is known as a task or a job
• The process can be sub divided into sub processes

                                                   6
Process
• Two processes may be associated with the same
  program, but they are considered as two separate
  execution sequences
• Example:
  – Several users may be running different copies
    of mail program
  – Same user may invoke many copies of editor
    program
                                                     7
Process States

•   Process changes its state while it executes
• The state of a process is defined in part by the current
    activity of a process
•   Each process may be in one of the following states
    •   New
    •   Ready
    •   Running
    •   Waiting
    • Terminated
                                                         8
Process State Diagram


                                                           TERMINATED
      Admitted                                    Exit
NEW
                                 Interrupt

                 READY                           RUNNING
                            Scheduler dispatch

             I/O or Event                           I/O or Event wait
              completion
                                   WAITING



             Figure 4.1 Diagram of Process State


                                                                        9
Sequence of Process
• Programs from the secondary storage device are moved to
  the job queue for the execution
• Creating of a Process is called the NEW state, after
  creation the process enters the job queue
•   Creation of a new process results in
    • A name is given to the process
    • Memory space is provided in the job queue
    • A Process Control Block is created
    • Its initial priority is assigned in the job queue
    • Initial resources are allocated to it
                                                          12
Sequence of Process ..

•The New process which is in job queue must be
admitted to the ready queue
• Process waiting in the ready queue must be assigned
to a processor this state is called READY state
•The scheduler dispatch will assign the process to the
processor, and the instructions in the process are being
executed this state is called RUNNING state

                                                         13
Sequence of Process

•The running process enters the Waiting state when it
requires an I/O or an event wait
•After completion of a I/O or an event the process in the
waiting state enters the READY state
•The running process enters the ready state when a
process is interrupted by an interrupt


                                                      14
Sequence of Process

•The running process exits from a processor after
completion of its execution, this state is called
TERMINATED state
•A terminated process releases all its resources to
the resources queue and memory space to memory
pool



                                                      15
Summary

 In this class, you have learnt about
• Definition of a Process
• Process State Diagram
• Sequence of Process




                                        16
Frequently Asked Questions

1.   Define a process
2.   Write a brief note on a process
3.   Draw process state diagram
4.   Explain various process states
5.   Explain the sequence of process
Other subject materials
•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


                                   18
Quiz
1. A process goes to wait state when it finishes
    execution
    a) True
    b) False
2. A process in the ready state is waiting to be
    assigned to a processor
     a)True
     b)False



                       9CM402.11                   19
Quiz

3. The running process may be interrupted by an interrupt and the
  process is sent back to READY state
  a) True
  b) False
4. Creation of a new process results in
   a) A name is given to the process
   b) Memory space is provided in the job queue
   c) Both
   d) None
                               9CM402.11                       20
Quiz
5. Process is an active entity
a) YES
b) NO
6. Process can be divided into sub processes
 a) YES
 b) NO



                        9CM402.11              21
Quiz
7. Program is an active entity
a) YES
b) NO
8. A process includes a process stack and data section
a) YES
b) NO



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

home


                                   23

More Related Content

What's hot

Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementUjjwal Kumar
 
Process management
Process managementProcess management
Process managementBirju Tank
 
Unix Process management
Unix Process managementUnix Process management
Unix Process managementWave Digitech
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocksmyrajendra
 
Operating System
Operating SystemOperating System
Operating SystemGowriLatha1
 
Basic concept of process
Basic concept of processBasic concept of process
Basic concept of processNabin Dahal
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
 
Process concept
Process conceptProcess concept
Process conceptjangezkhan
 
Round-ribon algorithm presntation
Round-ribon algorithm presntationRound-ribon algorithm presntation
Round-ribon algorithm presntationJamsheed Ali
 
3.6 modify process execution priorities v2
3.6 modify process execution priorities v23.6 modify process execution priorities v2
3.6 modify process execution priorities v2Acácio Oliveira
 

What's hot (17)

Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their Management
 
Process management
Process managementProcess management
Process management
 
Unix Process management
Unix Process managementUnix Process management
Unix Process management
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocks
 
Operating System
Operating SystemOperating System
Operating System
 
Basic concept of process
Basic concept of processBasic concept of process
Basic concept of process
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
3 process management
3 process management3 process management
3 process management
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Process concept
Process conceptProcess concept
Process concept
 
OS Chapter03
OS Chapter03OS Chapter03
OS Chapter03
 
Lecture 8 9 process_concept
Lecture 8 9 process_conceptLecture 8 9 process_concept
Lecture 8 9 process_concept
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Data (1)
Data (1)Data (1)
Data (1)
 
Round-ribon algorithm presntation
Round-ribon algorithm presntationRound-ribon algorithm presntation
Round-ribon algorithm presntation
 
3.6 modify process execution priorities v2
3.6 modify process execution priorities v23.6 modify process execution priorities v2
3.6 modify process execution priorities v2
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 

Similar to 11 process definition

Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdfAmanuelmergia
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocksmyrajendra
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxAmanuelmergia
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management JayeshGadhave1
 
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
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxTSha7
 
Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...ApurvaLaddha
 
CSI-503 - 2. Processor Management
CSI-503 - 2. Processor ManagementCSI-503 - 2. Processor Management
CSI-503 - 2. Processor Managementghayour abbas
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptxLECO9
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptxSKUP1
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentationchnrketan
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Shivam Mitra
 
Lecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptxLecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptxAngelaClarito1
 
Process and Challenges for Upgrading OC, RDC and TMS
 Process and Challenges for Upgrading OC, RDC and TMS Process and Challenges for Upgrading OC, RDC and TMS
Process and Challenges for Upgrading OC, RDC and TMSPerficient
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systemsRAMPRAKASHT1
 

Similar to 11 process definition (20)

Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdf
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocks
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
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
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...
 
CSI-503 - 2. Processor Management
CSI-503 - 2. Processor ManagementCSI-503 - 2. Processor Management
CSI-503 - 2. Processor Management
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptx
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptx
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Lecture5
Lecture5Lecture5
Lecture5
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...
 
Lecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptxLecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptx
 
The process states
The process statesThe process states
The process states
 
Process and Challenges for Upgrading OC, RDC and TMS
 Process and Challenges for Upgrading OC, RDC and TMS Process and Challenges for Upgrading OC, RDC and TMS
Process and Challenges for Upgrading OC, RDC and TMS
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
 

More from 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
 

11 process definition

  • 1. Understand Process Management Process definition, Process state diagram , Sequence of process HOME PREVIOUS TOPIC NEXT PREVIOUS QUESTION PAPERS FOR OS CPP TUTORIALS 1
  • 2. Recap In the last class, you have learnt about • Definition of system call • Types of system calls • Single user operating system structure • Multiuser operating system structure 2
  • 3. Objectives On completion of this period, you would be able to know • Definition of a Process • Process State Diagram • Sequence of Process 3
  • 4. Process • A Process is a program in execution • A process is more than a program code, some times also known as text section • A process includes the current activity, as represented by the program counter and the contents of the processors registers 4
  • 5. Process • A process also includes the process stack, which contains temporary data & data section which contains global variables • Program by itself is not a Process • Program is a Passive Entity • Ex. A file stored on a disk 5
  • 6. Process • Process is an active entity • Ex. Program counter specifies the next instruction to execute and set of associated resources • Process is known as a task or a job • The process can be sub divided into sub processes 6
  • 7. Process • Two processes may be associated with the same program, but they are considered as two separate execution sequences • Example: – Several users may be running different copies of mail program – Same user may invoke many copies of editor program 7
  • 8. Process States • Process changes its state while it executes • The state of a process is defined in part by the current activity of a process • Each process may be in one of the following states • New • Ready • Running • Waiting • Terminated 8
  • 9. Process State Diagram TERMINATED Admitted Exit NEW Interrupt READY RUNNING Scheduler dispatch I/O or Event I/O or Event wait completion WAITING Figure 4.1 Diagram of Process State 9
  • 10.
  • 11.
  • 12. Sequence of Process • Programs from the secondary storage device are moved to the job queue for the execution • Creating of a Process is called the NEW state, after creation the process enters the job queue • Creation of a new process results in • A name is given to the process • Memory space is provided in the job queue • A Process Control Block is created • Its initial priority is assigned in the job queue • Initial resources are allocated to it 12
  • 13. Sequence of Process .. •The New process which is in job queue must be admitted to the ready queue • Process waiting in the ready queue must be assigned to a processor this state is called READY state •The scheduler dispatch will assign the process to the processor, and the instructions in the process are being executed this state is called RUNNING state 13
  • 14. Sequence of Process •The running process enters the Waiting state when it requires an I/O or an event wait •After completion of a I/O or an event the process in the waiting state enters the READY state •The running process enters the ready state when a process is interrupted by an interrupt 14
  • 15. Sequence of Process •The running process exits from a processor after completion of its execution, this state is called TERMINATED state •A terminated process releases all its resources to the resources queue and memory space to memory pool 15
  • 16. Summary In this class, you have learnt about • Definition of a Process • Process State Diagram • Sequence of Process 16
  • 17. Frequently Asked Questions 1. Define a process 2. Write a brief note on a process 3. Draw process state diagram 4. Explain various process states 5. Explain the sequence of process
  • 18. Other subject materials • Web designing • Micro processors • C++ tutorials • java home 18
  • 19. Quiz 1. A process goes to wait state when it finishes execution a) True b) False 2. A process in the ready state is waiting to be assigned to a processor a)True b)False 9CM402.11 19
  • 20. Quiz 3. The running process may be interrupted by an interrupt and the process is sent back to READY state a) True b) False 4. Creation of a new process results in a) A name is given to the process b) Memory space is provided in the job queue c) Both d) None 9CM402.11 20
  • 21. Quiz 5. Process is an active entity a) YES b) NO 6. Process can be divided into sub processes a) YES b) NO 9CM402.11 21
  • 22. Quiz 7. Program is an active entity a) YES b) NO 8. A process includes a process stack and data section a) YES b) NO 22
  • 23. Other subject materials • Web designing • Micro processors • C++ tutorials • java home 23

Editor's Notes

  1. A PROCESS IS A PROGRAM IN EXECUTION
  2. The State of a process is defined assign part by the current activity of that process. Each Process may be in one of the following states. New Running Waiting Ready Terminated