Fedora Linux Support Community & Resources Center
  #1  
Old 11th July 2009, 06:39 PM
FFUser Offline
Registered User
 
Join Date: May 2009
Posts: 49
Obtaining thread per process information

Hi -

I am using R that uses a wrapper function for the fork() utility. I would like to see how many child processes are running at a given time from the shell. Naturally, these child processes all run under the parent R process that invoked the wrapper function, so I have the pid of the ultimate parent. I have tried various arguments to the 'ps' command, but to no avail. Any suggestions?

Thanks!

Version info:
Linux: 2.6.27.19-170.2.35.fc10.x86_64
R: 2.9.0 (2009-04-17)
Reply With Quote
  #2  
Old 12th July 2009, 12:09 AM
gthill Offline
Registered User
 
Join Date: May 2005
Location: g-land, east java
Age: 50
Posts: 387
try the command

pstree - to display a tree of processes

man pstree for your options
Reply With Quote
  #3  
Old 12th July 2009, 12:17 AM
FFUser Offline
Registered User
 
Join Date: May 2009
Posts: 49
Perfect - exactly what I was looking for. Thanks!
Reply With Quote
  #4  
Old 12th July 2009, 03:30 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,027
This is a ps command I use, the threads are grouped by parent process

ps -eLPc

Of course the pstree is more convenient if you just want the count of the threads
Reply With Quote
Reply

Tags
execv, fork, thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Fedora 7 keep any information about previous boot process??? dominik1261011 Using Fedora 1 6th July 2007 04:46 PM
can i kill a thread from a process ? jsanza@terra.es Using Fedora 3 28th February 2006 08:12 PM
Process / Thread List with Memory Usage lukasbradley Using Fedora 3 30th April 2005 09:38 AM
Obtaining Yumex ianmac Using Fedora 7 5th April 2005 04:20 PM


Current GMT-time: 09:27 (Saturday, 23-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat