






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document includes process management topic from subject - operating system. The topic - Process Management includes - Process Management: Definition, States, Scheduling, Operations, Threads and Their Types
Typology: Study notes
1 / 10
This page cannot be seen from the preview
Don't miss anything!







A process is a unit of work done by the computer. It needs certain resources such as:
A process in an OS passes through multiple states as it begins execution, waits for resources, gets scheduled, runs, and eventually finishes. These stages collectively describe the complete lifecycle of a process , depending on its progress and availability of system resources. These movements help the OS manage tasks efficiently. State Diagram: New (admit)Ready (dispatch)Running (release)Exit Running (event wait)Block/Waiting (event occurs)Ready — New
Process scheduling is the activity of the process manager that handles the removal of a running process from the CPU and selection of another process based on a particular strategy. Throughout its lifetime, a process moves between various scheduling queues such as ready queue, waiting queue, and devices queue. Scheduling is important in OS with multiprogramming, as multiple processes might be eligible for running at a time. One of the key responsibilities of the OS is to decide which programs will execute on the CPU.
(1) I/O Schedulers – Manages order of read/write operations. Reduces I/O wait time and improves performance. Schedules I/O requests using algorithms like FCFS. (2) Real-Time Schedulers – Used in systems where tasks must meet deadlines. Ensures timely execution of critical tasks.
Long-Term Scheduler Short-Term Scheduler It is a job scheduler It is a CPU scheduler Slowest scheduler Fastest scheduler Controls degree of multiprogramming Gives less control over degree Barely present in time-sharing systems essential for all systems Selects processes from job pool Ready processes for execution loads them by CPU
Process operations refer to actions or activities performed on processes in an OS. These operations include: They are crucial for managing and controlling execution of programs in the OS. Operations on processes are fundamental to the functioning of the OS, enabling effective flow of program execution and resource allocation. Each operation plays a vital role in ensuring that processes are efficiently managed, allowing for multitasking and optimal resource utilization.
A process is created and placed in the ready queue (main memory), where it waits to be executed.
It is the initial step of process execution activity, meaning creating a new process for execution. It might be performed by system / user / old process.
OS selects 1 process from the ready queue to run next. This selection step is called scheduling. Event/activity — state of process is changed from 'ready' to 'run'. OS puts process from ready state into running state. Dispatching is done by OS when resources are free or process has higher priority than ongoing process.
CPU starts running the chosen process. If process needs to wait for an event or resource, it becomes blocked and CPU switches to another process.
When a process invokes an I/O system call that blocks the process, OS puts it in block mode. Block mode — a mode where process waits for I/O.
Once process completes its task, OS terminates it and clears its context. Activity of ending process — is reclamation of computer resources taken by process for execution. Events that may lead to process termination:
Example: When we use Google Chrome, you can play games, watch videos, download files, communicate, book tickets etc. Each task runs as a separate thread inside the same browser process.
Needed in modern OS and applications because they provide: (1) Efficient Resource Sharing – Threads share memory and resources of the process. (2) Improved Performance – Multiple tasks run at the same time; programs execute faster. (3) Enable Concurrency – Multiple operations happen simultaneously: handling user input, processing data, saving files. (4) Better CPU Utilization – Can run on different cores, improving overall system performance.
Based on how they are managed and scheduled in an OS:
(5) Stack (LIFO) – Stores function call parameters and return address. Works on LIFO order (Last In First Out).