title: Determining CPU utilization- solaris unix
body: <p>I was just going through SO and found out a question <a href="https://stackoverflow.com/questions/3769405/determining-cpu-utilization">Determining CPU utilization</a></p>
  
  <p>The question is interesting and the one which is more intersting is the answer.
  So i thought doing some checks on my solaris SPARC unix system.</p>
  
  <p>i went to /proc as root user and i found out some directories with numbers as their names.
  I think these numbers are the process id's.Surprisingly i did not find /stat.(donno why?..)</p>
  
  <p>i took one process id(one  directory) and checked whats present inside it.below is the output</p>
  
  <pre><code>root@tiger&gt; cd 11770
  root@tiger&gt; pwd
  /proc/11770
  root@tiger&gt; ls
  as         contracts  ctl        fd         lstatus    lwp        object     path       psinfo     root       status     watch
  auxv       cred       cwd        lpsinfo    lusage     map        pagedata   priv       rmap       sigact     usage      xmap
  </code></pre>
  
  <p>i did check what are those files :</p>
  
  <pre><code>root@tigris&gt; file *
  as:             empty file
  auxv:           data
  contracts:      directory
  cred:           data
  ctl:            cannot read: Invalid argument
  cwd:            directory
  fd:             directory
  lpsinfo:        data
  lstatus:        data
  lusage:         data
  lwp:            directory
  map:            TrueType font file version 1.0 (TTF)
  object:         directory
  pagedata:       cannot read: Arg list too long
  path:           directory
  priv:           data
  psinfo:         data
  rmap:           TrueType font file version 1.0 (TTF)
  root:           directory
  sigact:         ascii text
  status:         data
  usage:          data
  watch:          empty file
  xmap:           TrueType font file version 1.0 (TTF)
  </code></pre>
  
  <p>i am not sure ..given this how can i determine the cpu utilization?
  for eg: what is the idle time of my process.</p>
  
  <p>can anyone give me the right direction?
  probably with an example!</p>