[svlug] Linux, Threads, and ps

Derek Balling dredd at megacity.org
Sat Aug 4 10:33:01 PDT 2001


At 10:23 AM -0700 8/4/01, Jeremy Zawodny wrote:
>On Sat, Aug 04, 2001 at 10:09:37AM -0700, Derek Balling wrote:
>>
>>  Threads != Processes
>
>Well, on Linux, the difference is very small.  Small enough that
>they're hard to tell apart.

Right, but if the kernel is going to internally handle "threads" as 
"processes" it should not expose that cruft to the user.

>  > ps should be a PROCESS list, not a THREAD list.
>
>Check the May 2001 "Compile Time" column in Linux Magazine for a
>clearer picture of what's going on:
>
>   http://www.linux-mag.com/2001-05/compile_01.html
>
>Unless you already know, of course. :-)

Hadn't read that, but it makes it clearer. I wonder if named is 
simply "not" enabling threads on Linux to avoid the 
nonsense/confusion. I'll have to go take another look at that 
Makefile...  I used to have to do "--disable-threads", but I wonder 
if that's just the default now. :-/

D

-- 
+---------------------+-----------------------------------------+
| dredd at megacity.org  | "Conan! What is best in life?"          |
|  Derek J. Balling   | "To crush your enemies, see them        |
|                     |    driven before you, and to hear the   |
|                     |    lamentation of their women!"         |
+---------------------+-----------------------------------------+




More information about the svlug mailing list