[lkml]   [1996]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: proc fs and shared pids
Albert Cahalan <> writes:

>The pid is 16 bits. A 16-bit tid can fit in the top bits to create
>a 32-bit global thread identifier. Users can use pid.tid to identify
>a particular thread, or just the pid to mean everything. Number the
>threads from one and let zero mean "all threads" so that the old
>software works. Then you can "kill -9 1234" for the whole process or
>"kill -9 1234.12" for just thread 12.

I see one problem with this 16bit "thread-ID" idea - it's not
impossible one would need more than 65536 concurrent threads,
and what would one do then? Let's try to avoid stepping into the
640KB-is-more-than-anyone-would-ever-need trap again...

Other than that I think it's a neat idea!

- Peter
Peter Eriksson <> Computer Systems Manager/BOFH
WWW: Phone: +46 13 282786
Linköping University, Department of Physics, S-581 83 Linköping, Sweden

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