Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Linux, I can confirm the CPU rate of use of the thread level by a top -H -b command, but do not seem to support a -H -b option by the top command of Mac OSX.

How to examine the ID of a thread using a lot of CPU's for Mac OSX?

share|improve this question
up vote 0 down vote accepted

ps -aux at the command line will quickly get you the resource information fro all threads running. you could pipe it into a grep command for specifics.

ps -aux |grep myPID

share|improve this answer
Thank you for answering , but I want to sort cpu rate like a top command – freddiefujiwra Oct 19 '09 at 0:31
Ah ok - can you run top interactively, or does it have to be in batch mode? ie within top, type o and set the key to be cpu? – Ben Short Oct 19 '09 at 0:49
Tanks a lot "top -o cpu " is OK! Are there Another answers? – freddiefujiwra Oct 19 '09 at 1:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.