专注于CPU使用C ++在一个核心上运行您的进程 [英] Dedicate the CPU to run your process on one core using C++

查看:66
本文介绍了专注于CPU使用C ++在一个核心上运行您的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个测量某些代码模式对CPU的影响的项目。为此,我需要在CPU上运行我的进程并停止CPU上的所有其他进程以查看我的进程的实际效果。此外,我需要在CPU的一个核心上运行我的进程。

任何人都可以帮助如何在C ++中执行此操作。

谢谢

解决方案

请参阅 http://technet.microsoft.com/en-us/magazine /ee851672.aspx [ ^ ]。

I working on a project that measure the effect of some code pattern on the CPU. To do this I need to run my process on the CPU and stop all other process on the CPU to see the real effect of my process. Also I need to run my process on one core of the CPU.
Can anyone help how to do this in C++.
Thanks

解决方案

See http://technet.microsoft.com/en-us/magazine/ee851672.aspx[^].


这篇关于专注于CPU使用C ++在一个核心上运行您的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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