在Android上,什么是正在运行的进程和缓存的后台进程之间的区别?进程、缓存、后台、正在运行

2023-09-04 23:34:11 作者:话不违心.

在Android上,当我看着设置 - >程序,该选项卡中跑下,我可以看到内存被切割成到部分:使用的内存和内存免费,还申请要么投入使用的内存或内存可用。在可用内存部分的应用程序被标记为缓存的后台进程。

那么,什么是缓存的后台进程?他们仍然在内存中,而不是切换到磁盘(如台式机/笔记本电脑做的),对不对?当用户选项卡中,这些缓存的后台进程中的一个,它会立即为它仍然是在内存中,就像一个正在运行的进程,显示对吧?

什么是机器人做的时候缓存的应用程序?

解决方案   

那么,什么是缓存的后台进程?

由于你所要求的东西在设备的用户界面中列出的技术跨pretation,该定义可能因设备而异,如果设备制造商当选鼓捣设置应用程序。

话虽这么说,缓存的后台进程通常是指不具有前景活动,并没有正在运行的服务流程。这些过程都保存在存储器仅仅因为我们有足够的内存来这样做,并且因此,当你注意,用户可以快速地切换回这些进程。由于Android的开始需要更多的系统RAM的又一个过程中,缓存的后台进程往往是获得终止,释放系统内存的进程。

一个缓存的后台进程的pre-杰出的例子就是之一,用户推出的应用程序,它周围戳一下然后pressed HOME键返回主屏幕。如果进程没有正在运行的服务,我希望找到它列为缓存的后台进程。

  

他们仍然在内存中,而不是切换到磁盘(如台式机/笔记本电脑做的),对吧?

正确的。 Android设备不使用交换空间。

On Android, when I look into "Setting" -> "App", under the tab "running", I can see the memory is cut into to parts: "used memory" and "memory free", also the applications are either put into "used memory", or "memory free". The applications in "memory free" part are noted as "cached background process".

So, what are "cached background processes"? They are still in memory, rather than switched to "disk" (as desktops/laptops do), right? When the user tab one of these "cached background processes", it would be displayed immediately as it is still in memory, just like a running process, right?

手机屏幕失灵是什么意思

What does Android do when it "cache" an application?

解决方案

So, what are "cached background processes"?

Since you are asking for a technical interpretation of something listed in a device UI, the definition may vary by device, if device manufacturers elected to tinker with the Settings app.

That being said, "cached background processes" usually refers to processes that do not have a foreground activity and do not have a running service. These processes are kept in memory simply because we have enough memory to do so, and therefore, as you note, the user can switch back to these processes quickly. As Android starts to need more system RAM for yet other processes, the "cached background processes" tend to be the processes that get terminated to free up system RAM.

The pre-eminent example of a "cached background process" would be one where the user launched the app, poked around it briefly, then pressed HOME to return to the home screen. If the process does not have a running service, I would expect to find it listed as a "cached background process".

They are still in memory, rather than switched to "disk" (as desktops/laptops do), right?

Correct. Android devices do not use swap space.