






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!







Process Suspension and Process Switching
When a process has nothing to do, say it is waiting for user input or a file to load, keeping it in RAM is wasteful. The OS handles this by moving idle processes out of RAM and onto disk, freeing up that valuable memory for processes that are actually ready to work. This is called suspension. RAM is fast but limited. Rather than terminating a waiting process, the OS shelves it temporarily and brings it back when needed.
Beyond the familiar Ready, Running, and Blocked states, real operating systems add a Suspended state, and actually two variants of it:
Process switching While suspension deals with memory, process switching deals with CPU time. Since only one process can use the CPU at any instant, the OS continuously rotates processes in and out, stopping one and loading another. This is commonly called a context switch. Switching is typically triggered by an interrupt, which is a signal demanding the OS's immediate attention. These can come from hardware like a keyboard or mouse, or from software conditions.
Suspension vs. Switching: The Core Difference
In short, suspension decides where a process lives, while switching decides who gets the CPU right now. Together, they keep a system responsive, fair, and capable of juggling dozens of tasks without breaking a sweat. conclusion Thank you!