I'm not understanding my professor means when he says the write flag and read flag. Does 0 mean it is triggered? He wants us to draw a state transition diagram but I think I can do that myself if I knew what was going on.
+---------+------------+-----------+----------------+ | Counter | Write flag | Read flag | Interpretation | +---------+------------+-----------+----------------+ | 0 | 0 | 0 | Write locked | | 0 | 0 | 1 | Invalid | | 0 | 1 | 0 | Invalid | | 0 | 1 | 1 | Available | | N | 0 | 0 | Write request | | N | 0 | 1 | Read locked | | N | 1 | 0 | Invalid | | N | 1 | 1 | Invalid | +---------+------------+-----------+----------------+