SlideShare a Scribd company logo
1 of 12
Operating systems
UNT-2-PART-1: PROCESS MANAGEMENT
Program Vs Process:
 A program in execution is called a process.
 Process needs computer resources for its execution
There may exist more than one process in the system which may require the
same resource at the same time.
 The operating system has to manage all the processes and the resources in a
convenient and efficient way.
Some resources may need to be executed by one process at one time to
maintain the consistency otherwise the system can become inconsistent, and
deadlock may occur.
Program Vs Process
OS as a Process Manager:
The operating system is responsible for the following activities in connection with
Process Management:
 Scheduling processes and threads on the CPUs.
 Creating and deleting both user and system processes.
 Suspending and resuming processes.
 Providing mechanisms for process synchronization.
 Providing mechanisms for process communication.
Process States: Processes may be in one of 5 states,
as shown in Figure:
1. New - The process is in the stage of
being created.
2. Ready - The process has all the
resources available that it needs to
run, but the CPU is not currently
working on this process's instructions.
3. Running - The CPU is working on
this process's instructions.
.
Process States: Processes may be in one of 5 states, as
shown in Figure:
4. Waiting - The process cannot run at
the moment, because it is waiting for
some resource to become available or
for some event to occur.
Example: keyboard input, disk access request,
inter-process messages, a timer to go off, or a
child process to finish.
5. Terminated - The process has
completed.
Process Control Block:
 The Attributes of the process are used by
the Operating System to create the
process control block (PCB).
 This is also called context of the process.
 Attributes which are stored in the PCB are
described in the diagram:
Process Id
Process State
Process Priority
Program Counter
General Purpose Registers
List of Open Files
List of Open Devices
Accounting Info.
Process Control Block
1. Process ID
When a process is created, a unique id is assigned to
the process which is used for unique identification of
the process in the system.
2. Program counter
While running processes when the context switch
occurs, the next instruction to be executed is stored in
the program counter which helps in resuming the
execution of the process from where it left off.
Process Id
Process State
Process Priority
Program Counter
General Purpose Registers
List of Open Files
List of Open Devices
Accounting Info.
Process Control Block
3. Process State:
There are different states for a process which are
“new”, “ready”, “running” or “waiting”
Helps to manage the processes and schedule them
4. Priority:
Every process has its own priority. The process with
the highest priority among the processes gets the CPU
first. This is also stored on the process control block.
Process Id
Process State
Process Priority
Program Counter
General Purpose Registers
List of Open Files
List of Open Devices
Accounting Info.
Process Control Block
5. General Purpose Registers
Every process has its own set of registers which are
used to hold the data which is generated during the
execution of the process.
6. List of Open Files:
During the Execution, Every process uses some files
which need to be present in the main memory. OS also
maintains a list of open files in the PCB.
Process Id
Process State
Process Priority
Program Counter
General Purpose Registers
List of Open Files
List of Open Devices
Accounting Info.
Process Control Block
7. List of Open Devices:
OS also maintain the list of all open devices which
are used during the execution of the process..
8. Accounting Information:
The information such as CPU time, memory usage,
etc helps the OS to monitor the performance of the
process.
Process Id
Process State
Process Priority
Program Counter
General Purpose Registers
List of Open Files
List of Open Devices
Accounting Info.
Process
Switching

More Related Content

Similar to OS-Unit-2-Part-1.pptx

My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process managementBabasab Patil
 
My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process managementBabasab Patil
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of ProcessShipra Swati
 
Chapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System ConceptsChapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System ConceptsMeenalJabde
 
Process , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating SystemsProcess , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating SystemsAhsanRazaKolachi
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Operating system
Operating systemOperating system
Operating systemMark Muhama
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)Imdad Ullah
 
OperatingSystem02..(B.SC Part 2)
OperatingSystem02..(B.SC Part 2)OperatingSystem02..(B.SC Part 2)
OperatingSystem02..(B.SC Part 2)Muhammad Osama
 
Process management os concept
Process management os conceptProcess management os concept
Process management os conceptpriyadeosarkar91
 
OS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of osOS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of osTahaShahid18
 

Similar to OS-Unit-2-Part-1.pptx (20)

Chapter 3.pdf
Chapter 3.pdfChapter 3.pdf
Chapter 3.pdf
 
My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process management
 
My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process management
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Process
ProcessProcess
Process
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
Chapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System ConceptsChapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System Concepts
 
UNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdfUNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdf
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
 
Process , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating SystemsProcess , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating Systems
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Operating system
Operating systemOperating system
Operating system
 
Completeosnotes
CompleteosnotesCompleteosnotes
Completeosnotes
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
OS (1).pptx
OS (1).pptxOS (1).pptx
OS (1).pptx
 
Complete Operating System notes
Complete Operating System notesComplete Operating System notes
Complete Operating System notes
 
OperatingSystem02..(B.SC Part 2)
OperatingSystem02..(B.SC Part 2)OperatingSystem02..(B.SC Part 2)
OperatingSystem02..(B.SC Part 2)
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
OS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of osOS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of os
 

Recently uploaded

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 

Recently uploaded (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 

OS-Unit-2-Part-1.pptx

  • 2. Program Vs Process:  A program in execution is called a process.  Process needs computer resources for its execution There may exist more than one process in the system which may require the same resource at the same time.  The operating system has to manage all the processes and the resources in a convenient and efficient way. Some resources may need to be executed by one process at one time to maintain the consistency otherwise the system can become inconsistent, and deadlock may occur.
  • 4. OS as a Process Manager: The operating system is responsible for the following activities in connection with Process Management:  Scheduling processes and threads on the CPUs.  Creating and deleting both user and system processes.  Suspending and resuming processes.  Providing mechanisms for process synchronization.  Providing mechanisms for process communication.
  • 5. Process States: Processes may be in one of 5 states, as shown in Figure: 1. New - The process is in the stage of being created. 2. Ready - The process has all the resources available that it needs to run, but the CPU is not currently working on this process's instructions. 3. Running - The CPU is working on this process's instructions. .
  • 6. Process States: Processes may be in one of 5 states, as shown in Figure: 4. Waiting - The process cannot run at the moment, because it is waiting for some resource to become available or for some event to occur. Example: keyboard input, disk access request, inter-process messages, a timer to go off, or a child process to finish. 5. Terminated - The process has completed.
  • 7. Process Control Block:  The Attributes of the process are used by the Operating System to create the process control block (PCB).  This is also called context of the process.  Attributes which are stored in the PCB are described in the diagram: Process Id Process State Process Priority Program Counter General Purpose Registers List of Open Files List of Open Devices Accounting Info.
  • 8. Process Control Block 1. Process ID When a process is created, a unique id is assigned to the process which is used for unique identification of the process in the system. 2. Program counter While running processes when the context switch occurs, the next instruction to be executed is stored in the program counter which helps in resuming the execution of the process from where it left off. Process Id Process State Process Priority Program Counter General Purpose Registers List of Open Files List of Open Devices Accounting Info.
  • 9. Process Control Block 3. Process State: There are different states for a process which are “new”, “ready”, “running” or “waiting” Helps to manage the processes and schedule them 4. Priority: Every process has its own priority. The process with the highest priority among the processes gets the CPU first. This is also stored on the process control block. Process Id Process State Process Priority Program Counter General Purpose Registers List of Open Files List of Open Devices Accounting Info.
  • 10. Process Control Block 5. General Purpose Registers Every process has its own set of registers which are used to hold the data which is generated during the execution of the process. 6. List of Open Files: During the Execution, Every process uses some files which need to be present in the main memory. OS also maintains a list of open files in the PCB. Process Id Process State Process Priority Program Counter General Purpose Registers List of Open Files List of Open Devices Accounting Info.
  • 11. Process Control Block 7. List of Open Devices: OS also maintain the list of all open devices which are used during the execution of the process.. 8. Accounting Information: The information such as CPU time, memory usage, etc helps the OS to monitor the performance of the process. Process Id Process State Process Priority Program Counter General Purpose Registers List of Open Files List of Open Devices Accounting Info.