how to identify running threads using commands

Dear All,

I am developing one project using QT Designer 3.3.5.
In my project contain 27-pthreads and 5-RT Task.
how to i know how many threads are currently running in my application using linux command.
I was try ps -ef , but it doesn't show the threads.
kindly help me with is regards.

lsof command shows you current opened files and threads.

lsof
  • nilesh

If you on GNU/Linux "ps-eLf" will shown information about threads

it is good for you know the source as well by netstat -na

ps -ef works with pipe or | just to show u application that currently running

eg: ps -ef | grep "processname"

or you can do this: ps -u "yourid"
eg: ps -u root