11 processes and their priority levels

Source: Internet
Author: User

process: The base of the operating system structure, the smallest unit of resource allocation.

thread: a thread exists in the process and is the smallest unit of operating system scheduling execution.

One operating system contains multiple processes, and one process contains multiple threads.

process in Android:

when a Android app launches and the system starts a process and a main thread to run the app. the Android system will do its best to keep the process stable and secure. However, in special cases, the old process is always removed to reclaim memory for new or more important processes. When you want to reclaim memory, the system decides which ones should be retained and which should be killed. Therefore, in Android Process Management, the priority level of the process is set. The priority depends on the program running within the process and the state of the program.

then when the system needs to reclaim memory, it is necessary to kill the low-priority process. This is the strategy of the Android system.

Mobile phones are used in different computer operating systems:

after the mobile phone is applied, the process is not destroyed; The used process is resident in memory;

five levels of priority:

1,Foreground process Common For example, the user is operating the interface

2, visisble process visible processes: Read the ebook, came a telephone, at this time the phone is visible process;

3, Service process: Common example: Side put music, you can put the ebook.

4, Background process: timing detection update;

5. Empty: null process, auxiliary process, cache process;

Note: The important level of the process may change at any time during operation.

11 processes and their priority levels

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.