模拟cpu使用率单声道为Android [英] simulate cpu usage in mono for Android
问题描述
我需要写在单为Android(安卓+ C#.NET)的应用程序来模拟特定持续稳定的CPU使用(例如:30%,50%,70%),持续2秒。
我所指向下面的链接
模拟稳定的CPU负载和尖峰一>
在这里,我可以能够稳系统CPU,但同样的操作无法在Android操作系统做。
任何帮助会有所帮助。
I need to write an application in mono for android(Android+c#.net) to simulate steady cpu usage for certain duration(eg:30%,50%,70%) for 2 sec. I refered below link Simulate steady CPU load and spikes here i can able to steady the system cpu but the same operation not able to do in Android os. Any help can be helpful.
在此先感谢。
推荐答案
我做这似乎对我的三星Galaxy S2,并在仿真器正常工作的示例项目
I made a sample project which seems to work fine on my Samsung Galaxy S2 and in the Emulator.
的 https://github.com/Cheesebaron/MonoDroid.CPULoader
它只是使用了资源链接到您。
It just uses the resources you linked to.
这篇关于模拟cpu使用率单声道为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!