Thread info

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
wasmanAsked:
Who is Participating?
 
woolmilkporcCommented:
ps -lm -p PID | grep -v PID | wc -l
0
 
medveddCommented:
ps -elm|grep pid|grep -v grep |wc -l

where pid is process number
0
 
woolmilkporcCommented:
... 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).
0
 
wasmanAuthor Commented:
Thank you Milk, sorry for late replay...i am sick for 2 weeks
0
 
woolmilkporcCommented:
Thx for the points 'man - hope you're well again!

wmp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.