开发者

Simulate Atom based pc environment

I need to run & test an application on Atom cpu based tablet PC. I tried remote debugging ability of VS2010 but it only handles exceptions.

My multi-threaded application's behaviors are totally different on that tablet PC. Is there any way to simulate Atom cpu -low speed, single core, etc- on my desktop environment? 开发者_运维技巧


Yes, you can use power saving settings to limit the CPU speed, and CPU affinity to prevent your process from using all cores. I don't know of an easy way to artificially limit use of CPU caches.

Configuring power saving settings would be more appropriate for SuperUser.

For affinity, you can p/invoke SetProcessAffinityMask

However, the Atom has a very different internal architecture, so merely dialing down clock speed will not be a very accurate simulation.


You can limit number of CPUs available by changing boot.ini http://support.microsoft.com/kb/170756 or Win 7 - http://windows.microsoft.com/en-US/windows7/Using-System-Configuration (start -> system configuration -> boot ->advanced).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜