Date: Mon, 1 Jun 2009 04:34:48 -0700 From: "Jack L." <xxjack12xx@gmail.com> To: nocturnal <swehack@gmail.com> Cc: freebsd-smp@freebsd.org Subject: Re: Show which CPU is executing a thread? Message-ID: <ab581e310906010434u90e11c7n2503f1afd1c0d952@mail.gmail.com> In-Reply-To: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com> References: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 1, 2009 at 3:57 AM, nocturnal <swehack@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ab581e310906010434u90e11c7n2503f1afd1c0d952>