In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to realize multitasking mechanism in Android". In daily operation, I believe that many people have doubts about how to realize multitasking mechanism in Android. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to realize multitasking mechanism in Android". Next, please follow the editor to study!
Memory management mechanism of Android:
Use as much memory as you have, and all free memory is used as a cache. That is, when a process stops active, Windows clears it from memory, but Android keeps the process in memory so that the next time it starts will be very fast, because it saves time to read from the storage device again, and Android will clear some processes that reside in memory and stop active only when there is not enough memory to start a new process.
Each process exists independently as a Java virtual machine and does not interfere with each other. To ensure the stability of Android, under normal circumstances, even if a single process crashes, the entire system will not crash, and there will never be a hint of insufficient memory.
The above can explain why there is always so little remaining memory in Android. "but will the process run in the background consume power and traffic?" This continues to explain.
Android's multitasking mechanism:
When the process is switched to the background, the system pauses the process. Do not consume cpu resources, only keep the running state in memory, and set priority according to the application itself.
Seven priorities:
Foreground process. As the name implies, the process that your current screen is displaying.
The process is visible. A process that requires standby at any time, such as an input method that needs to be summoned at any time.
Main service. The necessary services of the system, such as the telephone.
Secondary service. Services that are closely related to the system, such as Gmail's mail push service.
Background process. As the name implies, it is the process that you have just switched to the background.
Content provisioning node. There is no application entity, only content is provided for other applications, such as calendar provisioning node, mail provisioning node, and so on.
Empty process. There is nothing running in the process, some applications will still reside an empty process in the process after exiting, this function is to improve the startup speed of the application next time or record some historical information.
What is Android? Android is a free and open source operating system based on the Linux kernel, mainly used in mobile devices, such as smartphones and tablets, led and developed by Google and the Open Mobile Alliance.
At this point, the study on "how to implement multitasking mechanism in Android" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.