Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What happens when an app is suspended in uwp?


Asked by Miriam Dennis on Dec 14, 2021 FAQ



UWP apps have a third possible state called suspended. An app is suspended when a user minimizes it, or switches to another app. As far as the user is concerned the app simply appears to be running in the background.
Moreover,
Modern UWP (metro) apps are suspended by an svchost process that controls UWP app power states. This is done to save system resources, like energy and cpu usage. UWP apps are coded to allow this, that’s why you don’t see traditional Win32 programs going into a suspended state.
Indeed, This UWP process group is suspending processes to improve system performance. The icons appeared in the rows for: Microsoft Edge (37) , Cortana (2) , SkypeApp (2), Windows Shell Experience Host. When the down arrow was expanded it displayed rows with suspended. For Microsoft Edge there were 21 displaying suspended.
Next,
UWP apps are coded to allow this, that’s why you don’t see traditional Win32 programs going into a suspended state. Apps can also be suspended in the background when their not open because windows can see that you use those apps a lot, so when you open then next time, they’ll just resume and be right back up.
Also Know,
Uncontrolled background execution of apps overloads CPU and overall performance would be awful. On smartphones there is no virtual paged memory typically, so without app suspending and unloading device will quickly run out of memory. So, such UWP apps lifecycle is a direct effect of universal nature of UWP apps.