

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Operating System Process – Exam Notes
A process is a program that is currently being executed. A program stored on a hard disk is passive, but when it is loaded into main memory and starts running, it becomes a process. For example, when Microsoft Word or a web browser is opened, the corresponding program runs as a process.
New → Ready → Running → Waiting/Blocked → Ready → Terminated
New: The process is being created.
Ready: The process is waiting to be assigned the CPU.
Running: The CPU is executing the process.
Waiting/Blocked: The process is waiting for an I/O operation or another event.
Terminated: The process has completed its execution or has been stopped.
The Operating System maintains important information about each process in a data structure called the Process Control Block (PCB).
When several processes are ready to execute, the Operating System decides which process should receive the CPU. This activity is called process scheduling.
Context switching occurs when the CPU changes from one process to another. The OS saves the current process's state and loads the saved state of the next process. It enables multitasking, although switching itself adds some overhead.
Suppose a user is running Chrome, MS Word, and a music player at the same time. The OS manages these processes and allocates CPU time and memory among them. This makes it possible to use multiple applications seemingly at the same time.
A process is a program in execution. Process management is a major function of an Operating System. The OS creates, schedules, controls, and terminates processes while allocating the required resources. Effective process management helps achieve efficient CPU utilization and smooth multitasking.