[GE users] SGE 6.0u4 on lx24-x86 - lots of sge_qmaster entries in proc table

Rayson Ho raysonho at eseenet.com
Wed May 25 21:58:34 BST 2005

    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

The implementation of threads is different with NPTL.

If you create a thread with pthread_create(3), and call getpid(2) in the
threads, you will see that with LinuxThreads, each thread gets a unique
pid. With NPTL, from the user side, there is 1 PID. From the kernel side,
each kernel thread still has its PID, I believe there isn't a seperate
thread ID table so they put TID in the PID table. The funny thing is that
you can even pass the TID to kill.

So yes, each thread has its PID. But it is visible from user programs as it
was with LinuxThreads.

Anyway, many Linux features are still a hack :)


>It has nothing to do with NPTL vs LinuxThreads.  Each thread still has 
>its own PID with NPTL.  However, in RHEL3, ps and top have been changed 
>so that they only show one listing per threaded app by default. 
>However, there are command line arguments for 'ps' to change that (and a 
>keystroke in top once you've started it)
Get your FREE E-mail account at http://www.eseenet.com !

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list