0% found this document useful (0 votes)
2 views2 pages

os2

This document provides an overview of process management, detailing the concept of processes, their states, and the structure of the Process Control Block (PCB). It discusses process scheduling, context switching, operations on processes, and interprocess communication (IPC) methods. Additionally, it introduces threads as lightweight processes and highlights the benefits of multithreading.

Uploaded by

deder50551
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

os2

This document provides an overview of process management, detailing the concept of processes, their states, and the structure of the Process Control Block (PCB). It discusses process scheduling, context switching, operations on processes, and interprocess communication (IPC) methods. Additionally, it introduces threads as lightweight processes and highlights the benefits of multithreading.

Uploaded by

deder50551
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Unit 2: Process Management

1. Process Concept

 Process: A program in execu on. It includes the program code, current ac vity, and process
control block (PCB).

 Process States:

o New: Process is being created.

o Ready: Process is wai ng to be assigned to a processor.

o Running: Instruc ons are being executed.

o Wai ng: Wai ng for an event (e.g., I/O).

o Terminated: Finished execu on.

2. Process Control Block (PCB)

Stores informa on about a process:

 Process ID

 Process state

 Program counter

 CPU registers

 Memory management info

 Accoun ng info

 I/O status

3. Process Scheduling

Scheduler selects a process for execu on. Types:

 Long-term Scheduler (Job Scheduler): Selects processes from the job pool.

 Short-term Scheduler (CPU Scheduler): Selects among ready processes.

 Medium-term Scheduler: Suspends/resumes processes to manage memory.

4. Context Switching

When the CPU switches from one process to another, it saves the current state and loads the saved
state of the new process. This switch is called context switching.
5. Opera ons on Processes

 Crea on: e.g., using fork() in Unix.

 Termina on

 Parent-Child Rela onship: Hierarchical structure in some OSes.

 Interprocess Communica on (IPC): Sharing informa on between processes.

6. Interprocess Communica on (IPC)

Mechanisms for processes to communicate and synchronize:

 Shared Memory: Processes share a memory segment.

 Message Passing: Processes send and receive messages.

7. Threads

 A thread is a lightweight process.

 Mul threading: Mul ple threads within a process share code, data, and files.

 Benefits: Faster context switch, resource sharing, be er responsiveness.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy