From: "Miquel van Smoorenburg" <miquels@cistron.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: how to find all threads of a given process?
Date: Fri, 7 Jan 2005 11:58:46 +0000 (UTC) [thread overview]
Message-ID: <crlthm$fe7$1@news.cistron.nl> (raw)
In-Reply-To: <20050107002333.21133.qmail@web52602.mail.yahoo.com>
In article <20050107002333.21133.qmail@web52602.mail.yahoo.com>,
jesse <jessezx@yahoo.com> wrote:
>suppose I already know the PID of a process, how could
>i quickly identify all threads of this process?
With 2.6 and NPTL, you'll find them under /proc/PID/task
>As i know, under /proc, threads of all processes have
>prefix ".", one way is to iterate each one and do the
>check. the approach is too expensive. any other
>suggestions?
I've never seen anything like that. Is that a vendor-patched
kernel, something like Redhat 2.4 + NPTL support ?
Mike.
prev parent reply other threads:[~2005-01-07 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 0:23 jesse
2005-01-07 8:18 ` David Blomberg
2005-01-07 11:58 ` Miquel van Smoorenburg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='crlthm$fe7$1@news.cistron.nl' \
--to=miquels@cistron.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®