Show which CPU is executing a thread?

Jack L. xxjack12xx at
Mon Jun 1 12:07:22 UTC 2009

On Mon, Jun 1, 2009 at 3:57 AM, nocturnal <swehack at> wrote:
> I've been searching the web, all i want is to show which CPU is currently
> executing a certain thread. Is this info available to me in user space?
> Which manuals should i read to do this?
> I know Solaris has something about lwp that can show the last CPU used, i
> think. I would be happy if FreeBSD had something similar so it doesn't have
> to be very live or accurate.
> Thank you in advance for any info or hints.
You can use top and look at the C column for currently used cpu for process.

More information about the freebsd-smp mailing list