lkml.org 
[lkml]   [1997]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Killing clones
Date
From
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.

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.061 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site