We help IT Professionals succeed at work.

Thread info

WAS
WAS asked
on
Medium Priority
262 Views
Last Modified: 2012-05-11
Please provide command which i execute in RHEL (Linux) for knowing the number of threads running under particular process.

top -H (will give some info, not sure what is it showing)

Please help
Comment
Watch Question

Commented:
ps -elm|grep pid|grep -v grep |wc -l

where pid is process number
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
... to avoid a misunderstanding - the first "PID" means the PID you're searching for, the second "PID" actually means the string "PID" (to filter out the header line).
WASIT Analyst

Author

Commented:
Thank you Milk, sorry for late replay...i am sick for 2 weeks
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
Thx for the points 'man - hope you're well again!

wmp
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.