title: Operating System State Diagram
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6524262/state-transition-diagram-for-reader-writer-problem">State transition diagram for reader writer problem</a>  </p>
  </blockquote>
  
  
  
  <pre><code>Counter | Write Flag |  Read Flag | Description
  ________|____________|____________|________________
     0    |      0     |     0      | Write Locked
     0    |      0     |     1      | Invalid
     0    |      1     |     0      | Invalid
     0    |      1     |     1      | Available
  n(n&gt;0)  |      0     |     0      | Write Request
  n(n&gt;0)  |      0     |     1      | Read Lock
  n(n&gt;0)  |      1     |     0      | Invalid
  n(n&gt;0)  |      1     |     1      | Invalid
  _____________________________________________________
  </code></pre>
  
  <p>Above are the state descriptions. Draw a state transition diagram
  including all the valid states with edges labeled with appropriate
  events that trigger the state transition. 
  Also, describe why the invalid states are invalid.</p>
  
  <p>Can you help me by telling me which would represent my states and maybe try to describe how my drawing would be and how to do my transitions. Thanks a lot!</p>