title: Linux - Find if process is ready or running
body: <p>I'm developing a C++ application with process monitoring capabilities, which monitors state changes based on this model: <a href="http://www.macdesign.net/capella/it4813/images/stallings-Linux_process-thread_states-f4.18.png">http://www.macdesign.net/capella/it4813/images/stallings-Linux_process-thread_states-f4.18.png</a></p>
  
  <p>However, as /proc/pid/status combines both the "ready" and "executing" states into "running", I'm at a loss as to how I can find out which of these states a process is actually in. Can anyone offer any suggestions as to how I may discover this?</p>