在双核或四核CPU上运行软件 [英] Running software on Dual or Quad core CPU

查看:150
本文介绍了在双核或四核CPU上运行软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道,如果有一个双核或四核CPU,一个运行多个不同的程序,或同一个程序的多个副本,那么

操作系统(XP或2003)在单独的核心上运行每个单独的程序?

或者在命令

行或通过代码强制它们启动程序时需要做什么$>
谢谢

哈里

"哈利" < no@spam.thankswrote in message

news:Op **************** @ TK2MSFTNGP03.phx.gbl ...
< blockquote class =post_quotes>
只是想知道,如果有一个双核或四核CPU并且一个正在运行

多个不同的程序,或同一程序的多个副本,

操作系统(XP或2003)单独运行每个单独的程序

核心?或者是否需要在

命令行上启动程序时执行某些操作,或者通过代码强制它们在单独的内核上运行?



他们既可以使用核心,也可以在运行时切换。你不需要b $ b需要做任何事情。


>

谢谢

harry



" Michael C" < no **** @ nospam.comwrote in

news:Od ************* @ TK2MSFTNGP05.phx.gbl:


他们既可以使用核心,也可以在运行时切换。你

不需要做任何事情。



多核的性能优势实际上取决于是否对应用程序进行了任何多线程处理



当你说对应用程序完成多线程时,你只是意味着

你在程序中启动几个不同的线程来完成

各种各样的东西。


例如,我刚写了一个应用程序在互联网上出去,

从服务器收集三条信息。我让它在三个单独的线程中执行此操作。这种类型的东西会比一个核心更有价值吗?


垃圾邮件捕手 < sp ********** @ rogers.comwrote in message

news:Xn ******************** **************@127.0.0。 1 ...


" Michael C" < no **** @ nospam.comwrote in

news:Od ************* @ TK2MSFTNGP05.phx.gbl:


>他们既可以使用核心,也可以在运行时切换。你不需要做任何事情。



多核的性能优势实际上取决于是否对应用程序进行了任何多线程处理。



Just wondering, if one has Dual or Quad core CPU and one is running multiple
different programs, or multiple copies of the same program, does the
operating system (XP or 2003) run each individual program on seperate cores?
or does one need to do something when starting the programs on the command
line or through code to force them to run on seperate cores?

Thanks
harry

解决方案

"harry" <no@spam.thankswrote in message
news:Op****************@TK2MSFTNGP03.phx.gbl...

Just wondering, if one has Dual or Quad core CPU and one is running
multiple different programs, or multiple copies of the same program, does
the operating system (XP or 2003) run each individual program on seperate
cores? or does one need to do something when starting the programs on the
command line or through code to force them to run on seperate cores?

They could both use either cores and switch between while running. You don''t
need to do anything.

>
Thanks
harry



"Michael C" <no****@nospam.comwrote in
news:Od*************@TK2MSFTNGP05.phx.gbl:

They could both use either cores and switch between while running. You
don''t need to do anything.

Also the performance benefit of multiple cores really depends if there was
any multi-threading done to the application.


When you say multi-threading done to the application, do you simply mean
that within the program you start several different threads to accomplish
various things.

For example, I just wrote an application to go out on the Internet and
gather three pieces of information from a server. I had it do this in three
separate threads. Is this the type of thing that would benefit from more
than one core?

"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...

"Michael C" <no****@nospam.comwrote in
news:Od*************@TK2MSFTNGP05.phx.gbl:

>They could both use either cores and switch between while running. You
don''t need to do anything.


Also the performance benefit of multiple cores really depends if there was
any multi-threading done to the application.



这篇关于在双核或四核CPU上运行软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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