Why are apps suspended in Windows Task Manager?


👤 Diwas Poudel    🕒 Nov 8 2021    📁 Fix    📜 0 comment

Task Manager is my favorite process management tool for managing apps and process-related information. Task Manager displays a list of apps and processes that are now executing on the computer and are in various states. Some may be running (active), some may be suspended, some may be running in the background, and some may be terminated, and so on. In this article on Ourtechroom, I'll explain why apps get "suspended" in Windows Task Manager.

In this guide, you will also know about types of processes, what is suspended application is, why the application undergoes a suspended state, etc. Some awesome? Let's get started right now.

To laymen, we say suspension means "stopping" something. Suppose you have been suspended for a certain duration from your college then you are not allowed to attend class at college for that specific duration as you have been suspended. In the say way, Operating System suspends processes.

What is the Suspended Process?

Ans: Suspended Process are those process which has been turned off temporarily. When a process is temporarily suspended then later on it will restart from exactly the same state where it was stopped. So, the state of those processes must be stored somewhere else on your PC. If a process is in a suspended state then it doesn't consume any of your CPU, memory, and network. Technically speaking many operating systems saves these process(active, terminated, suspended) in a table structure called process table, which is the array-like structure for each.

Where to find which applications are suspended in Task Manager?

Ans: The Suspended State of process and application is displayed in the Status column in Task Manager.

suspended-states

Also suspended process has a green leaf at the side.

Why does OS suspend Process and Application?

Various reasons for Suspend Application are:

1 If you minimize the program and work on other processes and apps, the OS may consider it to be in a suspended state to avoid wasting CPU cycles. And when you maximize then it will go into an active mode and starts using CPU cycles.

2 When you boot your operating system, many applications and processes operate, and all of them are not now active, such as Outlook Mail programs. As a result, this mail will be suspended, and as soon as you get or use mail, this mail app will be active.

3 If process A is using a shared file and some process B is requesting for the same shared file then process B will go into temporarily suspended until process A stops for a certain time frame and then B enters immediately. This is done to prevent deadlock.

4 If the application waited for an event to happen for a long period of time.

Technically,

The application undergoes suspension when:

1 Process is just created and is in the ready state then it can go to ready suspended state and swapping out of main memory and placed in external storage by scheduler. Will be available for execution whenever it is loaded in the main memory.
2 Then the process is running and it can be blocked and the blocked process can go suspended and wait for an event called Blocked Suspended. This especially occurs if the process was performing IO operation and lack of main memory and moved them backed to secondary memory.
3 Blocked Suspended process can be unblocked and go into a ready suspended state and from there it can resume the process.

suspendedprocess
fig. Suspended States in OS (source)

How to manually suspend the process or program?

Ans: You can manually suspend the process or program using windows inbuilt resource monitoring tools called Resource Monitor.Steps for suspending the process or program.

  1. Goto run and type resmon.exe. This will open Resource Monitor
  2. Under the Overview tab, select a process from the list of running processes. You can look at the description column to know more about the process.
  3. Right-click on the process and click on Suspend Process and confirm it on the next dialog.

With these steps, you have successfully suspended the process. Once it is in suspend state CPU cycles are not used. You can resume the process by right click on the same process and then clicking on Resume Process.

Can we kill Suspended Process?

Ans: Yes, We can kill the Suspended Process with admin rights.

With task manager(admin privilege): Right-click on the process in task manager > End Task

With Command Prompt (with admin privilege): Type below command

TASKKILL /F /IM "programname"  

or

wmic process where name="programname" call terminate

Replace programname with desire program like cmd.exe