SlideShare a Scribd company logo
Assignment
operating system
Topic:
Process management of
life cycle
BSCS
MUHAMMAD MOHSIN
Submitted to prof
fakhra
Process Management
• Program
Program is a set of instruction that a computer can execute to perform specific
task.
• Process
A process is a program that is currently being executed. A process is made up of
the program code, the program counter, and the resources allocated by the OS.
• Process Management
Process management is the process of administering processes in a computer
system. It includes activities like creating, scheduling, terminating, and
synchronizing processes.
Different between program and process
program
• The program contains a set of
instructions designed to
complete a specific task.
• A program is a passive entity as
it resides in the secondary
memory.
• A program is a static entity.
process
• The process is an instance of an
executing program.
• The process is an active entity
as it is created during execution
and loaded into the main
memory.
• The process is a dynamic entity.
Memory lay out process
In computer systems, memory is divided into different segments
or sections, each serving a specific purpose. This division is crucial
for efficient program execution and resource management.
• Stack: Used for dynamic memory allocation during program
execution. Grows downwards in memory. Stores function call
frames, local variables, and return addresses.
• Heap :Used for dynamic memory allocation during program
execution. Grows upwards in memory. Provides more flexible
memory allocation than the stack. Requires manual memory
management
Data Segment: Divided into two sub-segments:
Initialized Data Segment (Data Segment): Stores global and static
variables that have been assigned initial values in the program.
Text Segment (Code Segment): Stores the
executable code of the program, including instructions and
constants. Read-only to prevent accidental modification of the
program code during execution.
Process life cycle
The process life cycle in an operating system refers to the stages a process goes
through during its execution. The key states in a process life cycle include:
 New: The process is created
 Ready: The process is waiting to be assigned a processor
 Running: The process's instructions are being executed by
the processor
 Waiting: The process is waiting for an event to occur, such
as a signal or I/O completion
 Terminated: The process has finished execution or been
terminated by the OS
PCB
A Process Control Block is a data structure
maintained by the operating system for every
process. It contains all the information about a
process that is needed to manage it effectively.
A Process Control Block (PCB) stores
information about a process in an operating
system.
Attributes of pcb
• Process ID: A unique identifier for each process
• Process state: The current state of the process
• Program counter: The program counter for the process
• Priority: The priority of the process
• General purpose registers: The general purpose registers for the
process
conclusion
• The Process Table and PCB are important for managing processes in
an operating system. The Process Table keeps a list of all active
processes, and the PCB holds details about each process. The PCB
enables smooth process switching, effective multitasking, and
efficient resource allocation.

More Related Content

PPTX
Unit 2_OS process management
PPTX
UNIT 2 OS.pptx Introduction of Operating System
PPTX
process_concept_introduction_overview.pptx
PDF
UNIT - 3 PPT(Part- 1)_.pdf
PPTX
Unit 2...............................................
PPTX
introduction to operating system unit 2
PPTX
OS_Unit II - Process Management_CATI.pptx
PPTX
UNIT I-Processes.pptx
Unit 2_OS process management
UNIT 2 OS.pptx Introduction of Operating System
process_concept_introduction_overview.pptx
UNIT - 3 PPT(Part- 1)_.pdf
Unit 2...............................................
introduction to operating system unit 2
OS_Unit II - Process Management_CATI.pptx
UNIT I-Processes.pptx

Similar to process management of life cycle.pptx in .. (20)

PPTX
Operating Systems chap 2_updated2 (1).pptx
PPTX
Operating Systems chap 2_updated2.pptx
PDF
Engg-0505-IT-Operating-Systems-2nd-year.pdf
PDF
OS-Process.pdf
PPTX
Unit 1 process management operating system.pptx
PDF
Lecture 2- Processes.pdf
PDF
Operating System-Concepts of Process
PDF
Unit 2 part 1(Process)
PDF
PPTX
Operating System process management system.pptx
PDF
Operating Systems PPT 1 (1).pdf
PDF
operating systems hybrid notes for computerscience.pdf
PDF
OS Content.pdf
PPTX
Process Management
PPTX
Lecture_2_Process_Management in operating systems.pptx
PDF
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
PPTX
Operating System Process Management.pptx
PPTX
c programming 1-1.pptx
PPTX
Process Management in Operating System
PPTX
Chapter -2 operating system presentation
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2.pptx
Engg-0505-IT-Operating-Systems-2nd-year.pdf
OS-Process.pdf
Unit 1 process management operating system.pptx
Lecture 2- Processes.pdf
Operating System-Concepts of Process
Unit 2 part 1(Process)
Operating System process management system.pptx
Operating Systems PPT 1 (1).pdf
operating systems hybrid notes for computerscience.pdf
OS Content.pdf
Process Management
Lecture_2_Process_Management in operating systems.pptx
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
Operating System Process Management.pptx
c programming 1-1.pptx
Process Management in Operating System
Chapter -2 operating system presentation
Ad

More from mhsinm2003 (9)

PPTX
professional praticesgffggfgggggggg.pptx
PPTX
Social Application4445555556666666666.pptx
PDF
Web3 and semantic web_2510604_081949.pdf
PPTX
WEB 3 senmantic design in web development.pptx
PDF
HTML Notes_241202_103535 to learning frontend
PPTX
Data Mining.pptx files tu improve the data mining skill
PDF
JavaScript to computer language learning the coding
PPTX
Operating System to control the overall computer in system
PPTX
process management of life cycle in computer science subject and data analysis
professional praticesgffggfgggggggg.pptx
Social Application4445555556666666666.pptx
Web3 and semantic web_2510604_081949.pdf
WEB 3 senmantic design in web development.pptx
HTML Notes_241202_103535 to learning frontend
Data Mining.pptx files tu improve the data mining skill
JavaScript to computer language learning the coding
Operating System to control the overall computer in system
process management of life cycle in computer science subject and data analysis
Ad

Recently uploaded (20)

PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
advance database management system book.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Lesson notes of climatology university.
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Empowerment Technology for Senior High School Guide
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
IGGE1 Understanding the Self1234567891011
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
Cell Types and Its function , kingdom of life
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Digestion and Absorption of Carbohydrates, Proteina and Fats
advance database management system book.pdf
Weekly quiz Compilation Jan -July 25.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Lesson notes of climatology university.
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
RMMM.pdf make it easy to upload and study
Empowerment Technology for Senior High School Guide
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
IGGE1 Understanding the Self1234567891011
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Final Presentation General Medicine 03-08-2024.pptx
Paper A Mock Exam 9_ Attempt review.pdf.
Cell Types and Its function , kingdom of life

process management of life cycle.pptx in ..

  • 1. Assignment operating system Topic: Process management of life cycle BSCS MUHAMMAD MOHSIN Submitted to prof fakhra
  • 2. Process Management • Program Program is a set of instruction that a computer can execute to perform specific task. • Process A process is a program that is currently being executed. A process is made up of the program code, the program counter, and the resources allocated by the OS. • Process Management Process management is the process of administering processes in a computer system. It includes activities like creating, scheduling, terminating, and synchronizing processes.
  • 3. Different between program and process program • The program contains a set of instructions designed to complete a specific task. • A program is a passive entity as it resides in the secondary memory. • A program is a static entity. process • The process is an instance of an executing program. • The process is an active entity as it is created during execution and loaded into the main memory. • The process is a dynamic entity.
  • 4. Memory lay out process In computer systems, memory is divided into different segments or sections, each serving a specific purpose. This division is crucial for efficient program execution and resource management. • Stack: Used for dynamic memory allocation during program execution. Grows downwards in memory. Stores function call frames, local variables, and return addresses. • Heap :Used for dynamic memory allocation during program execution. Grows upwards in memory. Provides more flexible memory allocation than the stack. Requires manual memory management
  • 5. Data Segment: Divided into two sub-segments: Initialized Data Segment (Data Segment): Stores global and static variables that have been assigned initial values in the program. Text Segment (Code Segment): Stores the executable code of the program, including instructions and constants. Read-only to prevent accidental modification of the program code during execution.
  • 6. Process life cycle The process life cycle in an operating system refers to the stages a process goes through during its execution. The key states in a process life cycle include:
  • 7.  New: The process is created  Ready: The process is waiting to be assigned a processor  Running: The process's instructions are being executed by the processor  Waiting: The process is waiting for an event to occur, such as a signal or I/O completion  Terminated: The process has finished execution or been terminated by the OS
  • 8. PCB A Process Control Block is a data structure maintained by the operating system for every process. It contains all the information about a process that is needed to manage it effectively. A Process Control Block (PCB) stores information about a process in an operating system.
  • 9. Attributes of pcb • Process ID: A unique identifier for each process • Process state: The current state of the process • Program counter: The program counter for the process • Priority: The priority of the process • General purpose registers: The general purpose registers for the process
  • 10. conclusion • The Process Table and PCB are important for managing processes in an operating system. The Process Table keeps a list of all active processes, and the PCB holds details about each process. The PCB enables smooth process switching, effective multitasking, and efficient resource allocation.