Ios-watchdog (watchdog) mechanism

Source: Internet
Author: User

To prevent an application from consuming too much system resources, the Apple Engineer Gate that developed iOS designed a "watchdog" mechanism. In different scenarios, the watchdog monitors the performance of the application. If the runtime is exceeded by the scenario, the watchdog will force the end of the application process. In Crashlog, developers will see error codes such as 0x8badf00d.

This is particularly true in the case of arc and the low phone model.

The exception code 0x8badf00d indicates that's application has been terminated by IOS because a watchdog timeout . The application took too long to launch, terminate, or respond to system events. One common cause of this is doing synchronous networking on the main thread. Whatever operation is in thread 0:needs to being moved to a background thread, or processed differently Block the main thread.

Apple doc address; https://developer.apple.com/library/ios/technotes/tn2151/_index.html

Related Article

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.