how to identify running threads using commands | Unix Linux Forums | UNIX for Advanced & Expert Users

  Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

how to identify running threads using commands

UNIX for Advanced & Expert Users


Tags
linux commands

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-29-2008
rajamohan rajamohan is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 19 February 2014, 6:43 AM EST
Posts: 27
Thanks: 3
Thanked 1 Time in 1 Post
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.
Sponsored Links
    #2  
Old Unix and Linux 09-29-2008
ynilesh's Unix or Linux Image
ynilesh ynilesh is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 7 April 2009, 7:39 AM EDT
Location: Bangalore, India.
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
lsof command shows you current opened files and threads.


Code:
lsof

- nilesh
Sponsored Links
    #3  
Old Unix and Linux 09-29-2008
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 27 March 2015, 11:47 AM EDT
Location: /dev/ph
Posts: 4,903
Thanks: 68
Thanked 450 Times in 418 Posts
If you on GNU/Linux "ps-eLf" will shown information about threads
    #4  
Old Unix and Linux 10-02-2008
flekzout flekzout is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 18 July 2011, 1:47 AM EDT
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Identify long running unix processes mohamedirfan AIX 5 04-13-2012 05:37 AM
How to list all threads in a running process makodarear AIX 2 02-23-2011 03:24 PM
Script to identify logged users & commands executed vijayarajvp Shell Programming and Scripting 2 07-14-2009 08:22 AM
Return code for parallel running threads jitendriya.dash Shell Programming and Scripting 2 05-13-2009 11:57 AM
Number of threads running vickylife Solaris 2 02-04-2009 04:26 PM



All times are GMT -4. The time now is 01:19 PM.