iOS background mechanism

Source: Internet
Author: User

Recently in the module on the preservation of the interface information, access to relevant information, the background mechanism of iOS has a systematic understanding, now summed up:

iOS is "pseudo-backstage",so-called "back-Office" in iOS does not refer to "executing programs", but "Recently used programs".

Close--------This program to completely shut down or has not been opened

The pending--------program is turned on, but no instructions are received (e.g., the program is turned on but the user has locked the machine)

Programs in use----normal use

Background--------Program is not open but still running code in the background

Pause--------Program is still using memory but not running code, the program only has 5 seconds of processing time after shutting down


In fact, you do not need to manage the multi-task background of IOS, because you see in the background of the program is not really running, in fact, multi-task background is not the actual task manager, more precisely, more like a browser-like history of things, but specifically for the program's record only. in general, multitasking is just a tool that allows users to switch between recently opened programs, and the best proof of this is that when you restart your iphone, all your recently opened programs are displayed in the multi-tasking background, and obviously they can't be running. So when you press the home key to leave the program, you do not need to go to the multi-task backstage, because 90% of the program will stop when you press the home key to leave the program.


Technically, all Cheng have a 5-second background time when they press the home button, and iOS gives them a very limited amount of time to clear what they need to clear before they turn them into a paused state, and then the program remains Memory so that it can be opened quickly. Special needs program can reach 10 minutes 。

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.