Deutsch   English   Français   Italiano  
<ve13au$1no07$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups: comp.unix.shell
Subject: Re: [OT] PIDs for Linux threads (was Re: pid ranges)
Date: Mon, 7 Oct 2024 16:47:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <ve13au$1no07$1@dont-email.me>
References: <vdn864$2p69n$1@news.xmission.com>
	<slrnvg2nc2.2dut.naddy@lorvorc.mips.inka.de>
	<vdrs2u$2rdb7$1@news.xmission.com> <vdviph$1io9a$1@dont-email.me>
	<ve0i46$2tnuv$2@news.xmission.com> <ve0kva$1nhff$1@dont-email.me>
	<wwv4j5ovy2g.fsf@LkoBDZeT.terraraq.uk> <ve128d$1pf02$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 07 Oct 2024 18:47:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3e14acaea9ed6b0734ae9de423718147";
	logging-data="1826823"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18s1u5P4s9OSvmJ3AFR919i8hGLt9aOJm8="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
 git://git.gnome.org/pan2)
Cancel-Lock: sha1:eOq31Z/8boNfmN7gwK4VQgcDmLE=
Bytes: 2354

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"