Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-29-2006, 07:38 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2006
Posts: 6
Rep:
|
display thread number in process
Hi all,
I wonder if there is any tool to display how many threads are currently running in a particular process ?
with kernel 2.4 and 2.6 ?
Thanks
|
|
|
|
03-30-2006, 01:06 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
|
|
|
|
03-31-2006, 12:59 PM
|
#3
|
|
Member
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542
Rep:
|
I have to ask ...what advantage if any does htop have over top? From the screen shot I see less info than I get with top on my Linux servers.
to the original posters if you really want to track processes & the respective threads you can use ps -ef you'll probably want to pipe the output to more (ie: ps -ef | more )
|
|
|
|
04-02-2006, 01:58 AM
|
#4
|
|
LQ Newbie
Registered: Mar 2006
Posts: 6
Original Poster
Rep:
|
Thanks...
htop gathers information like top...Actually I ask the question because I have a program that has 3 threads running and on a 2.4 kernel redhat, i see 3 of them displayed as separate processes (when i do ps -ef). But On 2.6 kernel, i only see 1 single.
|
|
|
|
07-07-2006, 12:50 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2006
Posts: 28
Rep:
|
Quote:
|
Originally Posted by tim24
Thanks...
htop gathers information like top...Actually I ask the question because I have a program that has 3 threads running and on a 2.4 kernel redhat, i see 3 of them displayed as separate processes (when i do ps -ef). But On 2.6 kernel, i only see 1 single.
|
Actually your question should due to Linux version changes. The Linux of previous v2.6(maybe) displays all user processs and threads to ps command while all have same PID. But the Linux of v2.6 just displays parent process.
Any help to you?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:09 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|