Sujet : Re: [OT] PIDs for Linux threads (was Re: pid ranges)
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.unix.shellDate : 07. Oct 2024, 17:47:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ve13au$1no07$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
On Mon, 07 Oct 2024 18:29:00 +0200, Janis Papanagnou wrote:
[ This is getting off-topic, sorry. ]
On 07.10.2024 15:31, Richard Kettlewell wrote:
_On Linux_ process IDs and thread IDs share the same number space which
changes the picture quite a bit: [...]
This is interesting.
Since processes are handled by the OS kernel what does that imply...?
A common process/thread interface in Linux?
Exactly.
In the early 2000's, the Linux kernel moved to supporting 1:1 threads,
and provided the NPTL ("Native Posix Threading Library") to provide the
POSIX application-level API to this new kernel capability.
Is that defined by POSIX threads, or is it something specific?
It is how Linux implements the kernel-level responsibilities of POSIX
threads.
Is there any good link to read more about that?
Plenty. Google "NPTL and Linux"
(My thread times have long passed; I used it from C++, and there were
a lot of things to consider when programming with threads back then.)
Janis
-- Lew Pitcher"In Skills We Trust"