多线程的程序在多核CPU与单核CPU运行效率有何不同
来源:互联网 发布:数据库用接口d 编辑:程序博客网 时间:2024/05/17 01:39
文章出处: http://topic.csdn.net/u/20080429/17/689d07f9-1199-4c8f-b7b7-60b24609270f.html
Depends on how the OS schedule threads to CPUs, and how applications set their threads' processor affinity
In windows, the operation system does the allocation for you based on cpu usage. You can set the affinity but, it will not determine which processor you run on. On the XBox 360, the affinity is needed otherwise the 360 will not allocate your thread to a seperate processor at all.
In Mac, threads with default affinity policy will be scheduled freely on any processor. These threads will be preferentially migrated to run on an idle processor. Threads with affinity tags will tend to remain in place.
In Linux, you can force the thread to migrate on the other cpu, by calling *_setaffinity() with different mask.
- 多线程的程序在多核CPU与单核CPU运行效率有何不同
- 多线程与单核cpu,多核cpu
- 多线程程序在多核和单核上运行的不同
- 多线程——让多核CPU单核运行
- Java多核cpu多线程运行效率分析
- 单核CPU,多线程与性能
- 单核CPU,多线程与性能
- Android 获取CPU 单核与多核 信息
- 单核,多核CPU的原子操作
- Kivy A to Z -- 通过绑定进程运行CPU提高Python程序在多核CPU平台上的性能
- 多个单核CPU和单个多核CPU
- 单核多线程与多核多线程的区别---总结
- 查看Apk 运行在多核cpu的那些核心上
- 多核CPU,多线程CPU,多发射CPU
- 浅谈多核CPU、多线程与并行计算
- 浅谈多核CPU、多线程与并行计算
- 浅谈多核CPU、多线程与并行计算
- 浅谈多核CPU、多线程与并行计算
- java socket编程(基础)
- HDU 1028 Ignatius and the Princess III
- 基于用户投票的排名算法(一):Delicious和Hacker News
- 如何搭建Dcm4chee的开发环境-2012
- UDP/TCP 打洞(穿越NAT)技术
- 多线程的程序在多核CPU与单核CPU运行效率有何不同
- Windows下安装MongoDB
- Android_Listview中使用线程实现无限加载更多项目的功能
- CentOS6.2上安装部署eucalyptus
- MongoDB参数说明
- ViewState EnableViewState 禁用与使用心得
- MongoDB权限管理
- careercup3.2
- Linux 平台相关代码的 C++ 解决方案