超线程 [英] Hyper-threading

查看:90
本文介绍了超线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用多线程,是一种AI模拟或

ALife。这很好用,但我想知道是否以及如何使用?#b $ b超线程在C#中?

感谢任何提示,Francois

____________________________

Netron项目,
http: //netron.sf.net

解决方案

Illumineo写道:

我的应用程序使用多线程并且是一种AI模拟或ALife。这很好但我想知道是否以及如何在C#中使用超线程?




.NET线程映射在OS线程上,因此操作系统将安排这些

线程,因此如果启用了超线程,则线程将利用这一点来支付



FB

-

------------------------------- -----------------------------------------

Get LLBLGen Pro,适用于.NET的高效O / R映射: http://www.llblgen.com

我的.NET博客: http://weblogs.asp。 net / fbouma

Microsoft MVP(C#)

---------------------- --------------------------------------------------


只是一个愚蠢的问题:如何启用超线程?这是一个选项吗?\\ n \\ n
C#项目或我必须在控制面板中设置的选项或

这是处理器的内置功能吗?


Ciao

Dante


Frans Bouma [C#MVP]" < PE ****************** @ xs4all.nl> schrieb im

Newsbeitrag新闻:Oi ************** @ TK2MSFTNGP09.phx.gbl ...

Illumineo写道:

我的应用程序使用多线程,是一种AI模拟或ALife。这很好但我想知道是否以及如何在C#中使用超线程?



.NET线程映射在OS线程上,因此操作系统将安排这些线程,因此如果启用超线程,线程将利用它。

FB

-
- -------------------------------------------------- ---------------------
获取LLBLGen Pro,.NET的高效O / R映射: http://www.llblgen.com
我的.NET博客: http://weblogs.asp.net/fbouma
Microsoft MVP(C#)
-------- -------------------------------------------------- --------------



感谢您的回答。


好吧,那么超线程只是一个引人注目的问题:只要我有一个

超线程CPU和一个带有威胁的应用程序我免费获得超线程

技术,对吗?


Hyper,hyper ...

" Wayne" <我****** @ community.nospam> schrieb im Newsbeitrag

news:ed ************* @ TK2MSFTNGP12.phx.gbl ...

但是,如果它不是'安装Windows时启用我不相信
你将拥有正确的HAL,因此可能无法充分利用多CPU的优势。一旦启用HT,您将需要安装正确的


在设备管理器中展开计算机节点,如果您看到多处理器
PC(或指示超过一个CPU)你很好。但是,如果您看到单处理器PC,您将需要转到它的属性并更新
驱动程序。手动选择驱动程序进行安装。您将需要使用与您拥有的单处理器驱动程序匹配的多处理器驱动程序,在我的
情况下它是一个ACPI驱动程序。请确保你没有选错。

过去我做了一些实验,发现我可以在我的机器上从Multi到
Uni,但是无法回去多。希望它是
,因为我从一个切换到另一个。如果您无法升级驱动程序以获得
的多重驱动,则需要在启用HT的情况下重新安装Windows。

如果一切顺利,您应该在性能中看到两个CPU窗口任务经理的标签。

-
谢谢
Wayne Sepega
杰克逊维尔,佛罗里达

"男人和一个漂亮的女孩坐了一个小时,似乎是一分钟。
但是让他坐在热炉上一分钟,这比任何一小时都要长。
这就是相对论。 - 阿尔伯特爱因斯坦

Ollie Riches <醇********** @ phoneanalser.net>在消息中写道
新闻:#I ************* @ TK2MSFTNGP15.phx.gbl ...

在BIOS设置中启用超线程该机器

-
HTH

奥利财富
http://www.phoneanalyser.net

免责声明:本论坛中发表的意见是我自己的,而不是我雇主的代表。
我不代表我的雇主回答问题。我只是一个
程序员

帮助程序员。

Dante <无**** @ thank.you>在消息中写道
新闻:OF ************** @ TK2MSFTNGP10.phx.gbl ...

只是一个愚蠢的问题:我如何启用超线程?这是

C#项目中的


选项还是我必须在控件中设置的选项

panels

或< blockquote class =post_quotes>这是处理器的内置功能吗?

Ciao
Dante

Frans Bouma [C#MVP]" < PE ****************** @ xs4all.nl> schrieb im
Newsbeitrag新闻:Oi ************** @ TK2MSFTNGP09.phx.gbl ...
> Illumineo写道:
> >我的应用程序使用多线程,是一种AI



模拟或> > ALIFE。这很好但我想知道是否以及如何使用> > C#中的超线程?
>
> .NET线程映射在OS线程上,因此操作系统将安排这些
>线程,因此如果启用超线程,线程将>利用这一点。
>
> FB
>
>
> -


---------------------------------------- --------------------------------

>获取LLBLGen Pro,用于.NET的高效O / R映射: http://www.llblgen.com >我的.NET博客: http://weblogs.asp.net/fbouma
> Microsoft MVP(C#)


------------------------------------- -----------------------------------




My application uses multiple-threads and is a kind of AI simulation or
ALife. This works fine but I was wondering if and how one can make use
of hyper-threading in C#?
Thanks for any hint, Francois

____________________________
The Netron Project,
http://netron.sf.net

解决方案

Illumineo wrote:

My application uses multiple-threads and is a kind of AI simulation or
ALife. This works fine but I was wondering if and how one can make use
of hyper-threading in C#?



.NET threads are mapped on OS threads, so the OS will schedule these
threads and therefore if hyperthreading is enabled, the threads will
take advantage of that.

FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------


Just a silly question: How do I enable hyperthreading? Is this an option in
the C# project or an option I have to set somewhere in the control panels or
is this a build in feature of the processor?

Ciao
Dante

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> schrieb im
Newsbeitrag news:Oi**************@TK2MSFTNGP09.phx.gbl...

Illumineo wrote:

My application uses multiple-threads and is a kind of AI simulation or
ALife. This works fine but I was wondering if and how one can make use
of hyper-threading in C#?



.NET threads are mapped on OS threads, so the OS will schedule these
threads and therefore if hyperthreading is enabled, the threads will
take advantage of that.

FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------



Thanks for the answers.

Well, then hyperthreading is just an eye catcher: As long I have a
hyperthreading CPU and an application with threats I get the Hyperthreading
technology for free, am I right?

Hyper, hyper...
"Wayne" <Me******@community.nospam> schrieb im Newsbeitrag
news:ed*************@TK2MSFTNGP12.phx.gbl...

However, if it wasn''t enabled when you installed windows I don''t believe you will have the correct HAL and therefore may not be able to take full
advantage of the multi CPU''s. You will need to install the correct one once you enable HT.

In Device manager you expand the Computer node, if you see multiprocessor PC (or something that indicates more than one CPU) you are fine. However, if
you see Uniprocessor PC, you''ll want to go to it''s properties and update
driver. Choose the driver manually to install. You will want to use the
Multiprocessor driver that matches the uniprocessor driver you have, in my
case it is an ACPI driver. Be sure you don''t select the wrong one.

In the past I did some experimenting and found I could go from Multi to Uni in my machine, but was unable to go back to multi. Hopefully it was because I switched from one to the other. If you can''t upgrade the driver to get the multi, you will need to reinstall windows with the HT enabled.

If all goes well you should see two CPU windows in the performance tab of
the Task Manager.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it''s longer than any hour.
That''s relativity." - Albert Einstein

"Ollie Riches" <ol**********@phoneanalser.net> wrote in message
news:#I*************@TK2MSFTNGP15.phx.gbl...

hyper threading is enable by in the BIOS setting of the machine
--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I''m just a programmer

helping programmers.
"Dante" <no****@thank.you> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...

Just a silly question: How do I enable hyperthreading? Is this an

option in

the C# project or an option I have to set somewhere in the control

panels

or

is this a build in feature of the processor?

Ciao
Dante

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> schrieb im
Newsbeitrag news:Oi**************@TK2MSFTNGP09.phx.gbl...
> Illumineo wrote:
> > My application uses multiple-threads and is a kind of AI


simulation or > > ALife. This works fine but I was wondering if and how one can make use > > of hyper-threading in C#?
>
> .NET threads are mapped on OS threads, so the OS will schedule these
> threads and therefore if hyperthreading is enabled, the threads will
> take advantage of that.
>
> FB
>
>
> --


------------------------------------------------------------------------

> Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com > My .NET blog: http://weblogs.asp.net/fbouma
> Microsoft MVP (C#)


------------------------------------------------------------------------





这篇关于超线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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