The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running shell commands from C/C++ alirezan High Level Programming 2 08-20-2008 02:57 AM
Running a queued set of commands? jjinno Shell Programming and Scripting 1 04-25-2008 12:27 AM
Running UNIX Commands from C zainab High Level Programming 2 04-14-2008 08:35 PM
How to disable running commands from vi Umesh_Sharoff Shell Programming and Scripting 1 07-14-2006 09:05 AM
running commands from script owijust Shell Programming and Scripting 2 01-09-2006 03:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2008
Registered User
 

Join Date: Mar 2008
Posts: 9
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.
Reply With Quote
Forum Sponsor
  #2  
Old 09-29-2008
ynilesh's Avatar
Registered User
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 174
lsof command shows you current opened files and threads.

Code:
lsof
- nilesh
Reply With Quote
  #3  
Old 09-29-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
If you on GNU/Linux "ps-eLf" will shown information about threads
Reply With Quote
  #4  
Old 10-02-2008
Registered User
 

Join Date: Sep 2008
Posts: 28
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0