Fedora Linux Support Community & Resources Center
Old 11th July 2009, 06:39 PM
FFUser Offline
Registered User
Join Date: May 2009
Posts: 50
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?


Version info:
R: 2.9.0 (2009-04-17)
Reply With Quote
Old 12th July 2009, 12:09 AM
gthill's Avatar
gthill Offline
Registered User
Join Date: May 2005
Location: g-land, east java
Age: 53
Posts: 387
try the command

pstree - to display a tree of processes

man pstree for your options
Reply With Quote
Old 12th July 2009, 12:17 AM
FFUser Offline
Registered User
Join Date: May 2009
Posts: 50
Perfect - exactly what I was looking for. Thanks!
Reply With Quote
Old 12th July 2009, 03:30 AM
marko's Avatar
marko Offline
Registered User
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 7,121
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

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 09: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: 19:30 (Sunday, 24-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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