SlideShare a Scribd company logo
Understanding the Linux 
operating system
PERFORMANCE TUNING 
Performance tuning is a challenging task that requires in-depth 
understanding of the hardware, operating system, and application.
LINUX PROCESS MANAGEMENT 
Process management is one of the most important roles of any 
operating system. 
Linux process management implementation is similar to UNIX® 
implementation. It includes process scheduling, interrupt handling, 
signaling, process prioritization, process switching, process state, 
process memory, and so on.
WHAT IS A PROCESS 
A process is an instance of execution that runs on a processor. The 
process uses any resources that the Linux kernel can handle to 
complete its task.
LIFE CYCLE OF A PROCESS 
Every process has its own life cycle such as creation, execution, 
termination, and removal. These phases will be repeated literally 
millions of times as long as the system is up and running. Therefore, 
the process life cycle is very important from the performance 
perspective.
LIFE CYCLE OF A PROCESS 
When a process creates a new process, the creating process (parent 
process) issues a fork() system call. When a fork() system call is 
issued, it gets a process descriptor for the newly created process 
(child process) and sets a new process id. It copies the values of the 
parent process’ process descriptor to the child’s. At this time the 
entire address space of the parent process is not copied; both 
processes share the same address space.
LIFE CYCLE OF A PROCESS 
The exec() system call copies the new program to the address space 
of the child process. Because both processes share the same address 
space, writing new program data causes a page fault exception. At 
this point, the kernel assigns the new physical page to the child 
process.
LIFE CYCLE OF A PROCESS 
When program execution has completed, the child process terminates 
with an exit() system call. The exit() system call releases most of the 
data structure of the process and notifies the parent process of the 
termination sending a signal
LIFE CYCLE OF A PROCESS 
The child process will not be completely removed until the parent 
process knows of the termination of its child process by the wait() 
system call. As soon as the parent process is notified of the child 
process termination, it removes all the data structure of the child 
process and release the process descriptor.
THREAD 
A thread is an execution unit generated in a single process. It runs 
parallel with other threads in the same process. They can share the 
same resources such as memory, address space, open files, and so 
on. They can access the same set of application data. A thread is also 
called Light Weight Process (LWP). Because they share resources, each 
thread should not change their shared resources at the same time. 
The implementation of mutual exclusion, locking, serialization, and so 
on, are the user application’s responsibility

More Related Content

PDF
Process management
PPTX
Linux principles and philosophy
PDF
Experimentos lab
PPT
Chapter 6 os
PPTX
System call (Fork +Exec)
DOCX
What is concurrency
PPTX
Lecture 5 process concept
PPTX
Chapter 3 chapter reading task
Process management
Linux principles and philosophy
Experimentos lab
Chapter 6 os
System call (Fork +Exec)
What is concurrency
Lecture 5 process concept
Chapter 3 chapter reading task

Viewers also liked (20)

PPT
Lamp Stack Optimization
PDF
Say Hello to the New Chartbeat Publishing
PDF
Performance optimization on Linux by Peter Toth
PDF
Tom Germeau: Mobile Apps: Finding the balance between performance and flexibi...
PPT
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
PDF
Building a Loyal and Returning Audience with the New Chartbeat Publishing
PDF
ODP Presentation LinuxCon NA 2014
PDF
Top Trends in Online Journalism for 2014
PDF
A Data State of the Union: Can We Make Quality Pay Online?
PPTX
Apache Performance Tuning: Scaling Up
ODP
Plmce2k15 15 tips galera cluster
PPT
Scheduling In Linux
PPTX
Linux Process & CF scheduling
PPTX
Data in the Newsroom: Content Solutions for Advertising Challenges
PDF
How to Monitor MySQL
PDF
Advanced troubleshooting linux performance
PDF
Solaris Linux Performance, Tools and Tuning
PPT
Process scheduling linux
PDF
MySQL Monitoring 101
PDF
Percona Live 4/15/15: Transparent sharding database virtualization engine (DVE)
Lamp Stack Optimization
Say Hello to the New Chartbeat Publishing
Performance optimization on Linux by Peter Toth
Tom Germeau: Mobile Apps: Finding the balance between performance and flexibi...
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Building a Loyal and Returning Audience with the New Chartbeat Publishing
ODP Presentation LinuxCon NA 2014
Top Trends in Online Journalism for 2014
A Data State of the Union: Can We Make Quality Pay Online?
Apache Performance Tuning: Scaling Up
Plmce2k15 15 tips galera cluster
Scheduling In Linux
Linux Process & CF scheduling
Data in the Newsroom: Content Solutions for Advertising Challenges
How to Monitor MySQL
Advanced troubleshooting linux performance
Solaris Linux Performance, Tools and Tuning
Process scheduling linux
MySQL Monitoring 101
Percona Live 4/15/15: Transparent sharding database virtualization engine (DVE)
Ad

Similar to Linux process management (20)

PPTX
Linux process management
DOCX
Week 11Linux InternalsProcesses, schedulingLecture o.docx
PPTX
Implementation of Kernel API
PPT
PPTX
Os presentation process
PPT
operating system for computer engineering ch3.ppt
PPT
Operating System 3
PPTX
Advanced Operating Systems......Process Management
PDF
4) system call acts as an interface to the OS services.A system call.pdf
PDF
Cs6413 operating-systems-laboratory
PPTX
Operating Systems
PPTX
Introduction to OS, types of operating systems
PDF
Solid-State diskA solid-state drive also known as a solid-state di.pdf
PPTX
Linux and Java - Understanding and Troubleshooting
PPTX
Operating system
PPTX
Process & Mutlithreading
PPTX
operating system_processes_ unit II.pptx
Linux process management
Week 11Linux InternalsProcesses, schedulingLecture o.docx
Implementation of Kernel API
Os presentation process
operating system for computer engineering ch3.ppt
Operating System 3
Advanced Operating Systems......Process Management
4) system call acts as an interface to the OS services.A system call.pdf
Cs6413 operating-systems-laboratory
Operating Systems
Introduction to OS, types of operating systems
Solid-State diskA solid-state drive also known as a solid-state di.pdf
Linux and Java - Understanding and Troubleshooting
Operating system
Process & Mutlithreading
operating system_processes_ unit II.pptx
Ad

More from Raghu nath (20)

PPTX
Mongo db
PDF
Ftp (file transfer protocol)
PDF
MS WORD 2013
PDF
Msword
PDF
Ms word
PDF
Javascript part1
PDF
Regular expressions
PDF
Selection sort
PPTX
Binary search
PPTX
JSON(JavaScript Object Notation)
PDF
Stemming algorithms
PPTX
Step by step guide to install dhcp role
PPTX
Network essentials chapter 4
PPTX
Network essentials chapter 3
PPTX
Network essentials chapter 2
PPTX
Network essentials - chapter 1
PPTX
Python chapter 2
PPTX
python chapter 1
PPTX
Linux Shell Scripting
PPTX
Mongo db
Ftp (file transfer protocol)
MS WORD 2013
Msword
Ms word
Javascript part1
Regular expressions
Selection sort
Binary search
JSON(JavaScript Object Notation)
Stemming algorithms
Step by step guide to install dhcp role
Network essentials chapter 4
Network essentials chapter 3
Network essentials chapter 2
Network essentials - chapter 1
Python chapter 2
python chapter 1
Linux Shell Scripting

Recently uploaded (20)

PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Institutional Correction lecture only . . .
PDF
01-Introduction-to-Information-Management.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Cell Types and Its function , kingdom of life
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Presentation on HIE in infants and its manifestations
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
human mycosis Human fungal infections are called human mycosis..pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Institutional Correction lecture only . . .
01-Introduction-to-Information-Management.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
2.FourierTransform-ShortQuestionswithAnswers.pdf
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
Final Presentation General Medicine 03-08-2024.pptx
Cell Structure & Organelles in detailed.
Cell Types and Its function , kingdom of life
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial diseases, their pathogenesis and prophylaxis
Presentation on HIE in infants and its manifestations
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

Linux process management

  • 1. Understanding the Linux operating system
  • 2. PERFORMANCE TUNING Performance tuning is a challenging task that requires in-depth understanding of the hardware, operating system, and application.
  • 3. LINUX PROCESS MANAGEMENT Process management is one of the most important roles of any operating system. Linux process management implementation is similar to UNIX® implementation. It includes process scheduling, interrupt handling, signaling, process prioritization, process switching, process state, process memory, and so on.
  • 4. WHAT IS A PROCESS A process is an instance of execution that runs on a processor. The process uses any resources that the Linux kernel can handle to complete its task.
  • 5. LIFE CYCLE OF A PROCESS Every process has its own life cycle such as creation, execution, termination, and removal. These phases will be repeated literally millions of times as long as the system is up and running. Therefore, the process life cycle is very important from the performance perspective.
  • 6. LIFE CYCLE OF A PROCESS When a process creates a new process, the creating process (parent process) issues a fork() system call. When a fork() system call is issued, it gets a process descriptor for the newly created process (child process) and sets a new process id. It copies the values of the parent process’ process descriptor to the child’s. At this time the entire address space of the parent process is not copied; both processes share the same address space.
  • 7. LIFE CYCLE OF A PROCESS The exec() system call copies the new program to the address space of the child process. Because both processes share the same address space, writing new program data causes a page fault exception. At this point, the kernel assigns the new physical page to the child process.
  • 8. LIFE CYCLE OF A PROCESS When program execution has completed, the child process terminates with an exit() system call. The exit() system call releases most of the data structure of the process and notifies the parent process of the termination sending a signal
  • 9. LIFE CYCLE OF A PROCESS The child process will not be completely removed until the parent process knows of the termination of its child process by the wait() system call. As soon as the parent process is notified of the child process termination, it removes all the data structure of the child process and release the process descriptor.
  • 10. THREAD A thread is an execution unit generated in a single process. It runs parallel with other threads in the same process. They can share the same resources such as memory, address space, open files, and so on. They can access the same set of application data. A thread is also called Light Weight Process (LWP). Because they share resources, each thread should not change their shared resources at the same time. The implementation of mutual exclusion, locking, serialization, and so on, are the user application’s responsibility