This in combination with the -fly option to print the output using long format will give you the information you are looking for: ps -flye -T To distinguish between processes and threads you can use the PID and SPID fields. I tried ps -eL -F , but it renders process names and not thread names. To the Linux kernel's scheduler, threads are nothing more than standard processes which happen to share certain resources. The GDB thread debugging facility allows you to observe all threads while your program runs—but whenever GDB takes control, one thread in particular is always the focus of debugging. The main thread name and process name are the same thing on Linux!
nest...