Re: Killing clones

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Thu, 14 Aug 1997 15:01:28 +0200 (MET DST)


Linus Torvalds wrote:
>
>
>
> On Thu, 14 Aug 1997, Albert D. Cahalan wrote:
> >
> > To make threaded apps very compatible:
> > getpid() could return just the bottom 16 bits to make userspace
> > even more happy. Then a gettid() function gets the whole 32 bits.
> > Normal kill() handles both just fine.
>
> Works for me.
>
> > Symmetry requires numbering unthreaded processes from 0x10000.
> > They still show up with low numbers and can be killed with the
> > low numbers.

One more thing about the "design" of this thing. To me it feels more
natural to use the -=top=- 16 bits as the PID and the lower 16 bits as
the thread ID. The "PID" is to be thought of as the "high order bits"
and the thread id as the "low order bits". right?

Roger.