From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6892953cd0da546e,start X-Google-Attributes: gidfee84,public From: Kristoff Picard Subject: status of threads in multithreaded programs Date: 1999/08/02 Message-ID: <37A556EC.3FE93576@cai.com>#1/1 X-Deja-AN: 507882408 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hello world, I'm looking for an OS command that allows me to determine the status of all threads of a running process. I found the "-m" flag of the ps command, however I need a little bit more information. On SUN Solaris, there is the "pstack" command, that give me a stack trace for each thread of a process. Here is an example: # /usr/proc/bin/pstack 340 340: rpc.ttdbserverd lwp#1 ---------- ef576858 poll (efffde30, 3, ffffffff) ef63fcc4 _svc_run (0, ffffe000, ef673dc4, ef67e328, ef67e8d8, 3) + 70 000246f4 main (72678, 72668, 7a2f8, 72670, 72674, 72660) + 694 0001e2a4 _start (0, 0, 0, 0, 0, 0) + 5c lwp#2 ---------- ef578bbc signotifywait () ef6bc8ac _dynamiclwps (0, ef6d5ddc, ef6d5dc4, ef6d587c, 0, 20) + 24 ef6bf1d8 thr_yield (0, 0, 0, 0, 0, 0) + 8c Any idea? Thanks in advance Kristoff