Re: Determining if the current processor is Hyperthreaded

Athul Acharya
2005-08-03T00:14:10Z

On 8/2/05, Bill Davidsen <davidsen@tmr.com> wrote:
> Athul Acharya wrote:
> > Hey folks,
> >
> > Is there a quick way to determine if the current processor is
> > Hyperthreaded, and if so, which logical processor represents the other
> > thread on the chip? Please cc replies to me as I am not subscribed to
> > the list :-)
>
> Look at /proc/cpuinfo and see if "siblings" is listed and more than one.
> There is no "other thread" there, it's like "which one is the other hand?"

Sorry, I should've been more specific -- I mean within the kernel.
That is, I want to know whether the current cpu I (kernel code) am
executing on is hyperthreaded, and if so, which logical cpu represents
the other thread on chip.

Athul