SlideShare a Scribd company logo
1 of 16
Subject : Operating system
▶ Submitted to : mam raheela
Topic :
Submitted by :
▶ Sadia khan
▶ Misbah Nazeer
Section: BSIT Evening A
Process
▶ Process is a program in execution. A process is the
basic unit of execution in an operating system.
▶ When a program is loaded into the memory and it
becomes a process.
Process parts
▶ Program: (Code/text) A program is a piece of code which may
be a single line or millions of lines.
▶ Data: This section contains the global and static variables.
▶ Heap: Contains memory dynamically allocated during run time.
▶ Stack: Temporary Data like function parameters, return addresses,
local variable.
Process life cycle
Processes may be in one of 5 states.
▶ New - The process is in the stage of being created.
▶ 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.
▶ Running - The CPU is working on this process's instructions.
▶ Waiting - The process cannot run at the moment, because it is
waiting for some resource to become available or for some event
to occur. For example the process may be waiting for keyboard
input, inter-process messages, or a child process to finish.
▶ Terminated - The process has completed.
Process life cycle
Process life cycle
There is also a suspended stage in some cases
▶ Suspend ready - if a process is in ready state and a more priority
process arrives then the previous process is sent to suspend ready
state (inside the secondary memory)
▶ Suspend wait - if a process is in wait or block state and a more
priority process arrives then the previous process is sent to suspend
block state (inside the secondary memory)
▶ as soon as the ready or block state is empty it is sent to ready or
block state respectively.
Process Control Block
A Process Control Block is a data structure maintained by the
Operating System for every process. The PCB is identified by an
integer process ID (PID). A PCB keeps all the information
needed to keep track of a
process
PCB
Process State
The current state of the process i.e., whether it is ready, running, waiting, or whatever.
▶ Process privileges
This is required to allow/disallow access to system resources.
▶ Process ID
Unique identification for each of the process in the operating system
▶ Program Counter
Program Counter is a pointer to the address of the next instruction to be executed for this
process.
▶ CPU Scheduling Information
Process priority and other scheduling information which is required to schedule the process.
▶ IO status information
This includes a list of I/O devices allocated to the process.
Parent and Child Process
▶ Process creation
▶ Parent: Creating process
▶ Child: New process(created by parent)
▶ Parent process create children processes which in turn create
other processes forming a three of processes. Generally,
process identifier and managed via a PID.
(A child process is a replica of the parent process and shares
some or all of its resources)
Process creation
▶ Resource sharing
▶ Parent and children share all resources.
▶ Children share subset of parent's resources.
▶ Parent and child share no resources.
▶ Execution
▶ Parent and children execute concurrently.
▶ Parent waits until children terminate.
Tree of Processes
Process termination
▶ Process executes last statement and ask the operating system
to delete it(exit).
▶ Output data from child to parent.
▶ Process resources are de allocated by OS.
▶ Parent may terminate execution of child processes.
▶ Child has exceeded allocated resources.
▶ Task assigned to child is no longer required.
▶ Some OS don't allow child to continue it its parent terminates
it's called cascading termination.
Inter-process communication
We may divide the process as dependent or independent
processes:
▶ Independent Processes that can neither affect other
processes or be affected by other processes.
▶ Cooperating Processes or dependent process are those that
can affect or be affected by other processes.
Why cooperating processes are
allowed?
Reasons why cooperating processes are allowed are:
▶ Information Sharing - There may be several processes
which need access to the same file
▶ Modularity - The most efficient architecture may be to
break a system down into cooperating modules. ( E.g.
databases with a client-server architecture. )
▶ Convenience - Even a single user may be multi-
tasking, such as editing, compiling, printing, and
running the same code in different windows.
Thank you

More Related Content

Similar to Process presentation

L-5 BCEProcess management.ppt
L-5 BCEProcess management.pptL-5 BCEProcess management.ppt
L-5 BCEProcess management.pptKirti Verma
 
Lecture_3-Process Management.pdf
Lecture_3-Process Management.pdfLecture_3-Process Management.pdf
Lecture_3-Process Management.pdfHarika Pudugosula
 
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
 
Chapter two process.pptx
Chapter two process.pptxChapter two process.pptx
Chapter two process.pptxMezigebuMelese1
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptMohammad Almuiet
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
OS_Process_Management_Chap4.pptx
OS_Process_Management_Chap4.pptxOS_Process_Management_Chap4.pptx
OS_Process_Management_Chap4.pptxDrAmarNathDhebla
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringYogesh Santhan
 

Similar to Process presentation (20)

UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
L-5 BCEProcess management.ppt
L-5 BCEProcess management.pptL-5 BCEProcess management.ppt
L-5 BCEProcess management.ppt
 
Operating System-2 by Adi.pdf
Operating System-2 by Adi.pdfOperating System-2 by Adi.pdf
Operating System-2 by Adi.pdf
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Chapter 3.pdf
Chapter 3.pdfChapter 3.pdf
Chapter 3.pdf
 
Lecture_3-Process Management.pdf
Lecture_3-Process Management.pdfLecture_3-Process Management.pdf
Lecture_3-Process Management.pdf
 
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
 
CH03.pdf
CH03.pdfCH03.pdf
CH03.pdf
 
Chapter two process.pptx
Chapter two process.pptxChapter two process.pptx
Chapter two process.pptx
 
Processes
ProcessesProcesses
Processes
 
Lecture 2 process
Lecture 2   processLecture 2   process
Lecture 2 process
 
Lecture 5 process concept
Lecture 5   process conceptLecture 5   process concept
Lecture 5 process concept
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
unit-2.pdf
unit-2.pdfunit-2.pdf
unit-2.pdf
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.ppt
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Process Management
Process ManagementProcess Management
Process Management
 
OS_Process_Management_Chap4.pptx
OS_Process_Management_Chap4.pptxOS_Process_Management_Chap4.pptx
OS_Process_Management_Chap4.pptx
 
OS (1).pptx
OS (1).pptxOS (1).pptx
OS (1).pptx
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
 

More from Urwa Shanza

Interesting Personalities of the world
Interesting Personalities of the worldInteresting Personalities of the world
Interesting Personalities of the worldUrwa Shanza
 
Social media and its Impacts on society
Social media and its Impacts on societySocial media and its Impacts on society
Social media and its Impacts on societyUrwa Shanza
 
1 booting process and software based solution
1 booting process and software based solution 1 booting process and software based solution
1 booting process and software based solution Urwa Shanza
 
Hypnosis(A state of Sub-consciousness)
Hypnosis(A state of Sub-consciousness)Hypnosis(A state of Sub-consciousness)
Hypnosis(A state of Sub-consciousness)Urwa Shanza
 

More from Urwa Shanza (6)

Interesting Personalities of the world
Interesting Personalities of the worldInteresting Personalities of the world
Interesting Personalities of the world
 
Social media and its Impacts on society
Social media and its Impacts on societySocial media and its Impacts on society
Social media and its Impacts on society
 
1 booting process and software based solution
1 booting process and software based solution 1 booting process and software based solution
1 booting process and software based solution
 
Hypnosis(A state of Sub-consciousness)
Hypnosis(A state of Sub-consciousness)Hypnosis(A state of Sub-consciousness)
Hypnosis(A state of Sub-consciousness)
 
Interrupts
InterruptsInterrupts
Interrupts
 
Hypnosis
HypnosisHypnosis
Hypnosis
 

Recently uploaded

Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyAnusha Are
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456KiaraTiradoMicha
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 

Recently uploaded (20)

Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 

Process presentation

  • 1. Subject : Operating system ▶ Submitted to : mam raheela
  • 2. Topic : Submitted by : ▶ Sadia khan ▶ Misbah Nazeer Section: BSIT Evening A
  • 3. Process ▶ Process is a program in execution. A process is the basic unit of execution in an operating system. ▶ When a program is loaded into the memory and it becomes a process.
  • 4. Process parts ▶ Program: (Code/text) A program is a piece of code which may be a single line or millions of lines. ▶ Data: This section contains the global and static variables. ▶ Heap: Contains memory dynamically allocated during run time. ▶ Stack: Temporary Data like function parameters, return addresses, local variable.
  • 5. Process life cycle Processes may be in one of 5 states. ▶ New - The process is in the stage of being created. ▶ 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. ▶ Running - The CPU is working on this process's instructions. ▶ Waiting - The process cannot run at the moment, because it is waiting for some resource to become available or for some event to occur. For example the process may be waiting for keyboard input, inter-process messages, or a child process to finish. ▶ Terminated - The process has completed.
  • 7. Process life cycle There is also a suspended stage in some cases ▶ Suspend ready - if a process is in ready state and a more priority process arrives then the previous process is sent to suspend ready state (inside the secondary memory) ▶ Suspend wait - if a process is in wait or block state and a more priority process arrives then the previous process is sent to suspend block state (inside the secondary memory) ▶ as soon as the ready or block state is empty it is sent to ready or block state respectively.
  • 8. Process Control Block A Process Control Block is a data structure maintained by the Operating System for every process. The PCB is identified by an integer process ID (PID). A PCB keeps all the information needed to keep track of a process
  • 9. PCB Process State The current state of the process i.e., whether it is ready, running, waiting, or whatever. ▶ Process privileges This is required to allow/disallow access to system resources. ▶ Process ID Unique identification for each of the process in the operating system ▶ Program Counter Program Counter is a pointer to the address of the next instruction to be executed for this process. ▶ CPU Scheduling Information Process priority and other scheduling information which is required to schedule the process. ▶ IO status information This includes a list of I/O devices allocated to the process.
  • 10. Parent and Child Process ▶ Process creation ▶ Parent: Creating process ▶ Child: New process(created by parent) ▶ Parent process create children processes which in turn create other processes forming a three of processes. Generally, process identifier and managed via a PID. (A child process is a replica of the parent process and shares some or all of its resources)
  • 11. Process creation ▶ Resource sharing ▶ Parent and children share all resources. ▶ Children share subset of parent's resources. ▶ Parent and child share no resources. ▶ Execution ▶ Parent and children execute concurrently. ▶ Parent waits until children terminate.
  • 13. Process termination ▶ Process executes last statement and ask the operating system to delete it(exit). ▶ Output data from child to parent. ▶ Process resources are de allocated by OS. ▶ Parent may terminate execution of child processes. ▶ Child has exceeded allocated resources. ▶ Task assigned to child is no longer required. ▶ Some OS don't allow child to continue it its parent terminates it's called cascading termination.
  • 14. Inter-process communication We may divide the process as dependent or independent processes: ▶ Independent Processes that can neither affect other processes or be affected by other processes. ▶ Cooperating Processes or dependent process are those that can affect or be affected by other processes.
  • 15. Why cooperating processes are allowed? Reasons why cooperating processes are allowed are: ▶ Information Sharing - There may be several processes which need access to the same file ▶ Modularity - The most efficient architecture may be to break a system down into cooperating modules. ( E.g. databases with a client-server architecture. ) ▶ Convenience - Even a single user may be multi- tasking, such as editing, compiling, printing, and running the same code in different windows.