iOS模拟器是否使用多个内核? [英] Does the iOS-Simulator use multiple cores?

查看:168
本文介绍了iOS模拟器是否使用多个内核?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在iPad 2配备了两个CPU核心,线程问题的调试将比以往更加重要。现在我想知道:iOS模拟器实际上是否使用Mac上的多核?

Now that the iPad 2 comes with two CPU cores, the debugging of threading issues will be more important than ever. Now I'm wondering: Does the iOS-Simulator actually use the multiple cores available on the Mac?

推荐答案

运行iOS程序在模拟器上,Xcode为英特尔处理器编译程序。模拟器不模拟ARM处理器,因此线程代码的精确执行将与iOS设备和模拟器不同。无论iOS模拟器使用多少核心,iOS设备中的ARM处理器与Mac上运行的Intel处理器之间的线程代码执行可能差异很大。因此,由多核iPad 2处理器引起的任何问题可能会或可能不会出现在模拟器中。

To run iOS programs on the simulator, Xcode compiles your program for the Intel processor. The simulator does not emulate an ARM processor, so exact execution of threaded code will differ from an iOS device and the simulator. Regardless of how many cores the iOS simulator uses, threaded code execution may vary greatly between the ARM processors in iOS devices and the Intel processor running on the Mac. Therefore any issues that crop up due to the multicore iPad 2 processor may or may not show up in the simulator.

换句话说,您需要在iPad 2而不是模拟器上调试此类问题,因此模拟器使用的核心数无关紧要。

In other words, you'll want to debug such issues on the iPad 2, not the simulator, so it doesn't matter how many cores the simulator uses.

这篇关于iOS模拟器是否使用多个内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆