SlideShare a Scribd company logo
Operations on
Processes
BY NAVID DANESHVARAN
SOFTWARE ENGINEERING STUDENT AT KHARAZMI
UNIVERSITY
2 /
11Process Creation
 Parent Process
 Children Process
 Process identifier (pid)
 Pid
Tree of Processes
UNIX, Linux & Windows
Index to access process within the kernel
3 /
11Process Tree for the Linux OS
UNIX and Linux ps -el
4 /
11Parent and Child Process
 Parent Process
 Directly from OS
 Constrained to a Subset of the Resources of the Parent Process
 Purpose: Prevent Overloading the System
Child Process Needs CPU Time, Memory, Files,
I/O Devices
Partition or Share Some Resources
5 /
11Parent and Child Process
 Parent Process
 Create New Process
 1- Parent Continues to Execute
 2- Parent Waits
 Address-Space Possibilities
 1- Duplicate of the Parent Process
 2- New Program Loaded
Child Processinitialization data (input)
6 /
11Creating Process in UNIX
7 /
11Process Creation in Windows
8 /
11Process Termination
 Finishes Executing Its Final Statement
 Delete it by exit() System Call
 Status Value (Typically int) Its Parent
 TerminateProcess() in Windows Parent of the Process
 Reasons: 1- child has exceeded its usage 2- task assigned to the child is no
longer required 3- parent terminates
9 /
11Process Termination
 cascading termination
 Zombie Process
UNIX & Linux
10 /
11Thank You for Your Attention
Any Question?
11 /
11Resources
 A. Silberschatz, Operating System Concepts, 2012.

More Related Content

What's hot

Interprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SInterprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.S
Hussain Ala'a Alkabi
 
System call (Fork +Exec)
System call (Fork +Exec)System call (Fork +Exec)
System call (Fork +Exec)
Amit Ghosh
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
Unit 6 interprocessor arbitration
Unit 6 interprocessor arbitrationUnit 6 interprocessor arbitration
Unit 6 interprocessor arbitration
Dipesh Vaya
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
Maitree Patel
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
Ravi Kumar Patel
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
File system structure
File system structureFile system structure
File system structure
sangrampatil81
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
hashim102
 
System calls
System callsSystem calls
System calls
Bernard Senam
 
Memory management
Memory managementMemory management
Memory management
Vishal Singh
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9myrajendra
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithms
Shubham Sharma
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
Sabin dumre
 
Demand paging
Demand pagingDemand paging
Demand paging
Trinity Dwarka
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
LECO9
 
Disk structure
Disk structureDisk structure
Disk structure
Shareb Ismaeel
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Processes and threads
Processes and threadsProcesses and threads

What's hot (20)

Interprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SInterprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.S
 
System call (Fork +Exec)
System call (Fork +Exec)System call (Fork +Exec)
System call (Fork +Exec)
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Unit 6 interprocessor arbitration
Unit 6 interprocessor arbitrationUnit 6 interprocessor arbitration
Unit 6 interprocessor arbitration
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
File system structure
File system structureFile system structure
File system structure
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
System calls
System callsSystem calls
System calls
 
Memory management
Memory managementMemory management
Memory management
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithms
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
 
Demand paging
Demand pagingDemand paging
Demand paging
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
 
Disk structure
Disk structureDisk structure
Disk structure
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 

Similar to Operations on Processes

CH03.pdf
CH03.pdfCH03.pdf
CH03.pdf
ImranKhan880955
 
Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptx
DiptoRoy21
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
Kathirvel Ayyaswamy
 
Lecture_3-Process Management.pdf
Lecture_3-Process Management.pdfLecture_3-Process Management.pdf
Lecture_3-Process Management.pdf
Harika Pudugosula
 
Process threads operating system.
Process threads operating system.Process threads operating system.
Process threads operating system.
Reham Maher El-Safarini
 
process creation OS
process creation OSprocess creation OS
process creation OS
Kiran Kumar Thota
 
What is-a-computer-process-os
What is-a-computer-process-osWhat is-a-computer-process-os
What is-a-computer-process-os
Manish Singh
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
Kathirvel Ayyaswamy
 
Processes
ProcessesProcesses
Lect3 process
Lect3 processLect3 process
Lect3 process
santosh rao
 
System calls operating system ppt by rohit malav
System calls operating system  ppt by rohit malavSystem calls operating system  ppt by rohit malav
System calls operating system ppt by rohit malav
Rohit malav
 
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
Mohammad Almuiet
 
Windows Live Forensics 101
Windows Live Forensics 101Windows Live Forensics 101
Windows Live Forensics 101
Arpan Raval
 
Advanced Operating Systems......Process Management
Advanced Operating Systems......Process ManagementAdvanced Operating Systems......Process Management
Advanced Operating Systems......Process Management
Veejeya Kumbhar
 
Lecture 8 9 process_concept
Lecture 8 9 process_conceptLecture 8 9 process_concept
Lecture 8 9 process_concept
Kiran Kumar Thota
 
Processes in Linux.ppt
Processes in Linux.pptProcesses in Linux.ppt
Processes in Linux.ppt
jguuhxxxfp
 
11_UNIX_Processes_Including_Select.ppt
11_UNIX_Processes_Including_Select.ppt11_UNIX_Processes_Including_Select.ppt
11_UNIX_Processes_Including_Select.ppt
SIDDHARTHANANDCSE202
 
Process management
Process managementProcess management
Process management
Akshay Ithape
 
Understanding operating systems 5th ed ch13
Understanding operating systems 5th ed ch13Understanding operating systems 5th ed ch13
Understanding operating systems 5th ed ch13BarrBoy
 

Similar to Operations on Processes (20)

CH03.pdf
CH03.pdfCH03.pdf
CH03.pdf
 
Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptx
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
 
Lecture_3-Process Management.pdf
Lecture_3-Process Management.pdfLecture_3-Process Management.pdf
Lecture_3-Process Management.pdf
 
Process threads operating system.
Process threads operating system.Process threads operating system.
Process threads operating system.
 
9 cm402.13
9 cm402.139 cm402.13
9 cm402.13
 
process creation OS
process creation OSprocess creation OS
process creation OS
 
What is-a-computer-process-os
What is-a-computer-process-osWhat is-a-computer-process-os
What is-a-computer-process-os
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
Processes
ProcessesProcesses
Processes
 
Lect3 process
Lect3 processLect3 process
Lect3 process
 
System calls operating system ppt by rohit malav
System calls operating system  ppt by rohit malavSystem calls operating system  ppt by rohit malav
System calls operating system ppt by rohit malav
 
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
 
Windows Live Forensics 101
Windows Live Forensics 101Windows Live Forensics 101
Windows Live Forensics 101
 
Advanced Operating Systems......Process Management
Advanced Operating Systems......Process ManagementAdvanced Operating Systems......Process Management
Advanced Operating Systems......Process Management
 
Lecture 8 9 process_concept
Lecture 8 9 process_conceptLecture 8 9 process_concept
Lecture 8 9 process_concept
 
Processes in Linux.ppt
Processes in Linux.pptProcesses in Linux.ppt
Processes in Linux.ppt
 
11_UNIX_Processes_Including_Select.ppt
11_UNIX_Processes_Including_Select.ppt11_UNIX_Processes_Including_Select.ppt
11_UNIX_Processes_Including_Select.ppt
 
Process management
Process managementProcess management
Process management
 
Understanding operating systems 5th ed ch13
Understanding operating systems 5th ed ch13Understanding operating systems 5th ed ch13
Understanding operating systems 5th ed ch13
 

Recently uploaded

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

Operations on Processes

  • 1. Operations on Processes BY NAVID DANESHVARAN SOFTWARE ENGINEERING STUDENT AT KHARAZMI UNIVERSITY
  • 2. 2 / 11Process Creation  Parent Process  Children Process  Process identifier (pid)  Pid Tree of Processes UNIX, Linux & Windows Index to access process within the kernel
  • 3. 3 / 11Process Tree for the Linux OS UNIX and Linux ps -el
  • 4. 4 / 11Parent and Child Process  Parent Process  Directly from OS  Constrained to a Subset of the Resources of the Parent Process  Purpose: Prevent Overloading the System Child Process Needs CPU Time, Memory, Files, I/O Devices Partition or Share Some Resources
  • 5. 5 / 11Parent and Child Process  Parent Process  Create New Process  1- Parent Continues to Execute  2- Parent Waits  Address-Space Possibilities  1- Duplicate of the Parent Process  2- New Program Loaded Child Processinitialization data (input)
  • 8. 8 / 11Process Termination  Finishes Executing Its Final Statement  Delete it by exit() System Call  Status Value (Typically int) Its Parent  TerminateProcess() in Windows Parent of the Process  Reasons: 1- child has exceeded its usage 2- task assigned to the child is no longer required 3- parent terminates
  • 9. 9 / 11Process Termination  cascading termination  Zombie Process UNIX & Linux
  • 10. 10 / 11Thank You for Your Attention Any Question?
  • 11. 11 / 11Resources  A. Silberschatz, Operating System Concepts, 2012.

Editor's Notes

  1. Pid -> integer Number -> Unique Number for each process
  2. init process -> serves as the root parent process for all user processes kthreadd -> creating additional processes that perform tasks on behalf of the kernel sshd -> managing clients that connect to the system by using ssh (secure shell) login -> managing clients that directly log onto the system
  3. The parent may have to partition its resources among its children, or it may be able to share some resources (such as memory or files) among several of its children
  4. display the contents of a file —say, image.jpg— -> name of the file, name of the output device
  5. The new process consists of a copy of the address space of the original process. Both processes (the parent and the child) continue execution at the instruction after the fork(). The child process inherits privileges and scheduling attributes from the parent, as well certain resources, such as open files. /bin/ls -> The child process then overlays its address space -> used to get a directory listing. Child process completes (by either implicitly or explicitly invoking exit()).
  6. CreateProcess() -> requires loading a specified program into the address space STARTUPINFO and PROCESS INFORMATION -> Structure. STARTUPINFO -> specifies many properties of the new process, such as window size and appearance and handles to standard input and output files. PROCESS INFORMATION -> contains a handle and the identifiers to the newly created process and its thread. ZeroMemory() -> allocate memory for each of these structures. Use the parent’s existing environment block and starting directory pi.hProcess -> passed a handle of the child process.
  7. All the resources of the process -> deallocated by the operating system Parent needs to know the identities of its children.
  8. entry in the process table -> until the parent calls wait() -> process table contains the process’s exit status. Zombie Process -> A process that has terminated, but whose parent has not yet called wait(). Orphans Process -> Now consider what would happen if a parent did not invoke wait() and instead terminated -> Linux and UNIX -> assigning the init process as the new parent ->The init process periodically invokes wait().