How to list all threads in a running process

Hello,

On Linux, I can use 'ps -efL | grep process_name' to list all threads that belong to a running process. -L has a different meaning on AIX and I could not find an equivalent flag in the man pages.

Does anyone know of a way to dump the threads under a running process?

Thanks,
Hubert

depending on your OS

man ptree
man pstree
man truss
man tusc
man strace

Thanks, after some further digging, I found what I was looking for in the man pages:

ps -mo THREAD -p <pid>