From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: Olivier Croquette <ocroquette@free.fr>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Thread and process dentifiers (CPU affinity, kill)
Date: Fri, 20 May 2005 12:53:07 -0400 [thread overview]
Message-ID: <20050520165307.GG23488@csclub.uwaterloo.ca> (raw)
In-Reply-To: <428DF95E.2070703@free.fr>
On Fri, May 20, 2005 at 04:51:10PM +0200, Olivier Croquette wrote:
> From the beginning we are talking about the present GNU/Linux systems,
> which do already use NTPL in standard. NPTL is no future standard, it is
> present standard.
Hmm, I just noticed the page I found about NPTL had 2005 date one place
and 2002 in another. Yeah that is what people are using already.
Most current i386 systems do NOT use NPTL yet by default since it only
works on 2.6 kernels, and even then probably only if glibc was compiled
that way.
> This means basicly that 50% of your assertions (like the above) are
> wrong, and your conclusions "suffer" from that :)
>
> The point is that if you make a ps on a decent Linux based system, you
> will *NOT* see one process for each thread. Nor they do appear in /proc.
>
> This means there are *NOT* userland processes.
>
> And therefore, you shall *NOT* be able to reference them as such where a
> process ID is required.
Hmm, I just ran a pthread program and every thread shows up as a process
in ps. Of course that is on a system with a 2.4 kernel compatible
glibc, so that is probably not a valid test. Running on 2.6.11 on an
amd64 with glibc compiled for 2.6 kernels only, I only see one pid for
the multithreaded program.
Doing kill on the threadid on the amd64 does return ESRCH.
Make sure your test is on a 2.6 kernel system with glibc compiled to
only use nptl (so not 2.4 kernel compatible at all). It appears to work
as you want it to now.
Len Sorensen
next prev parent reply other threads:[~2005-05-20 16:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 18:00 Olivier Croquette
2005-05-19 18:23 ` Lennart Sorensen
2005-05-19 19:46 ` Chris Friesen
2005-05-20 12:55 ` Lennart Sorensen
2005-05-20 14:51 ` Olivier Croquette
2005-05-20 16:53 ` Lennart Sorensen [this message]
2005-05-20 18:13 ` Miquel van Smoorenburg
2005-05-20 20:12 ` Lennart Sorensen
2005-05-23 12:56 ` Nix
2005-05-20 20:17 ` Olivier Croquette
2005-05-20 20:38 ` Lee Revell
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=20050520165307.GG23488@csclub.uwaterloo.ca \
--to=lsorense@csclub.uwaterloo.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=ocroquette@free.fr \
/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®