Re: is there a "process affinity" switch



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/
>
>
>



.



Relevant Pages

  • Re: How useful is Hyper-Threading for average user?
    ... Hyperthreading can ... dual physical CPUs. ... IMHO hyper-threading is non-issue when making a purchasing ...
    (comp.os.linux.hardware)
  • Re: Does hyper-threading = dual cpu
    ... >> With hyperthreading enabled and an SMP kernel the OS will see a single ... It won't perform like two physical CPUs ... > throughput should be higher than with hyperthreading disabled. ... > Now when I get my dual XEON machine running, ...
    (comp.os.linux.misc)
  • Re: Disable of hyperthreading on Xeon
    ... Brandon Niemczyk mumbled into her beard: ... >> When I boot up the machine, it shows 4 CPUs because of the hyperthreading. ...
    (comp.os.linux.development.system)
  • Re: is xeon hyperthreading considered good or bad?
    ... with hyperthreading on in bios. ... Top now shows me 4 cpus with processes running on all four ... course not to the point of a real dual core. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Why Two CPUs in Task Mgr?
    ... It is because of the HyperThread feature in the Intel CPU. ... SMT) allows for a single physical processor to appear to the operating ... choice if you wish to use hyperthreading. ... >both of these boxes display two CPUs in Task Manager. ...
    (microsoft.public.win2000.general)