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

  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 Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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 09-29-2008
ynilesh's Avatar
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 09-29-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 31 August 2014, 11:02 AM EDT
Location: /dev/ph
Posts: 4,787
Thanks: 63
Thanked 424 Times in 393 Posts
If you on GNU/Linux "ps-eLf" will shown information about threads
    #4  
Old 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:16 AM.