Re: is there a "process affinity" switch
- From: "Michael D. Ober" <obermd.@.alum.mit.edu.nospam>
- Date: Wed, 19 Oct 2005 08:20:21 -0600
In W2K, hyperthreaded CPUs are reported as distinct CPUs. The OS itself
doesn't know that they are actually a single HT enabled CPU. The problem is
that the SetAffinityMask API doesn't know either. There is an additional
API that deals with HT and multi-core CPUs.
Mike Ober.
"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:uhUAGaB1FHA.2072@xxxxxxxxxxxxxxxxxxxxxxx
> > Mike Sutton's solution will work on Windows 2000, but it may fail on XP
and
> > Server 2003. The difference is that W2K treats HT enabled processors as
if
> > they are seperate processors while XP and later are HT aware and
somtimes
> > treats them as a single processor.
>
> If hyperthreading is not enabled in the BIOS then Windows will see a
single processor (and treat it as a single
> processor), however as long as it's enabled then the OS should see two
processors. I've tested and verified this on 3
> machines running XP or Server 2003 as AFAIK hyperthreading is not
supported in Win2K.
> Hope this helps,
>
> Mike
>
>
> - Microsoft Visual Basic MVP -
> E-Mail: EDais@xxxxxxxx
> WWW: Http://EDais.mvps.org/
>
>
>
.
- References:
- is there a "process affinity" switch
- From: Tony
- Re: is there a "process affinity" switch
- From: Ken Halter
- Re: is there a "process affinity" switch
- From: Mike D Sutton
- is there a "process affinity" switch
- Prev by Date: Re: Application error "Permission Denied" only under WinXP-SP2
- Next by Date: Re: Add a document to my project?
- Previous by thread: Re: is there a "process affinity" switch
- Next by thread: Re: CAPICOM.dll Encrypt Method
- Index(es):
Relevant Pages
|