title: How to get a list of all running processes on a Mac?
body: <p>It would all be good to get:</p>
  
  <ol>
  <li>The process ID of each one</li>
  <li>How much CPU time gets used by the process</li>
  </ol>
  
  <p>and can we do this for Mac in C or Objective C? Some example code would be awesome!</p>