在 iPhone 应用程序中,最耗电量的事情是什么?
我正在制作一个会快速耗尽用户电池的应用程序。为此,我计划使用声音框架进行振动、定位服务、从互联网下载大而空的文件、使用手机背面的手电筒等等。 我知道这些可以有效地耗尽电池,但我想知道是否有更多方法消耗更多或同等的电量/处理器,或者可以以任何方式解决这个问题?
有关如何实现 100% CPU 使用率的示例也非常受欢迎。
谢谢。
I am making an app that quickly drains the users battery. For this, I am planning on using the sound-framework for vibrating, location services, download large but empty files from the internet, use the flashlight on the back of the phone, and so on.
I know these can effectively drain the battery, but I would like to know if there are more methods that are more or equally power/processor-consuming or that could work for this in any way?
Examples on how to achieve 100% CPU usage is also very appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是您可以做的一些事情(其中大多数都可以通过编程方式完成。即,一旦您的应用程序启动,它们都可以一一打开) -
电池很可能会在 2 小时内耗尽。
一种使用线程实现 100% CPU 使用率的建议方法 - iPhone 3GS 上后台线程消耗 100% CPU 导致潜在主线程。但要小心...
Here are some of the things you could do (Most of these are possible to do programatically. i.e. they can all be turned on one by one as soon as your app starts) -
Most likely the battery will drain within 2 hours.
One suggested way for you to achieve 100% CPU usage using threading - Background threads consuming 100% CPU on iPhone 3GS causes latent main thread. But be careful...