Listing all threads for specific process
When a process hangs, we may get the number of threads with option L.
To know the thread of a process we have to provide its PID as argument.
ps -L 3801
Look at the above snapshot, LWP stands for light weight process.
PID is same for all the process, but LWP showing number of threads have different values.