Process Management Presentation
Process Management Presentation
• • The Process Control Block (PCB) stores information about each process.
• • Key Fields in a PCB:
• - Process ID (PID): Unique identifier for the process.
• - Program Counter (PC): Stores the address of the next instruction to execute.
• - CPU Registers: Holds values needed by the CPU to execute the process.
• - Memory Management Info: Contains information about the process’s memory
allocation.
• - Process State: Indicates whether the process is running, waiting, etc.
• - I/O Status Info: Includes I/O devices allocated to the process.
Multitasking and
Multithreading
• • Multitasking allows multiple
processes to run concurrently by
sharing system resources.
• • Multithreading is the ability of a
process to split into multiple
threads, allowing multiple tasks to
be performed simultaneously.
• • Multitasking vs Multithreading:
• - Multitasking: Multiple processes
run at the same time.
• - Multithreading: Multiple tasks
run within the same process.
Zombie and Orphan
Processes
• Zombie Processes: A process that has finished execution but still
has an entry in the process table because its parent has not read its
exit status.
- Problem: Consumes resources and could fill up the process table.
- Solution: The parent process should read the exit status using
wait().
WHAT IS THE PRIMARY ROLE EXPLAIN THE DIFFERENCE WHAT ARE THE DIFFERENT WHAT IS PROCESS
OF PROCESS MANAGEMENT BETWEEN A PROCESS AND A STATES A PROCESS CAN BE SCHEDULING, AND WHY IS IT
IN AN OPERATING SYSTEM? THREAD. IN? ESSENTIAL FOR AN OS?
Practice Questions (Review Slides 5-11)
WHAT SYSTEM CALLS ARE DESCRIBE THE PROCESS WHAT IS THE DIFFERENCE HOW DO ORPHAN AND WHAT STEPS ARE EXPLAIN THE
INVOLVED IN PROCESS CONTROL BLOCK (PCB) BETWEEN MULTITASKING ZOMBIE PROCESSES INVOLVED IN THE IMPORTANCE OF REAL-
MANAGEMENT? AND ITS KEY FIELDS. AND MULTITHREADING? DIFFER FROM EACH TERMINATION OF A TIME PROCESS
OTHER? PROCESS? MANAGEMENT.