State transition diagram for reader writer problem

前端 未结 1 912
你的背包
你的背包 2021-01-16 17:50

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

相关标签:
1条回答
  • 2021-01-16 18:18

    The write flag and the read flag are each a boolean value, meaning it can hold a 0 or a 1. The state appears to be defined by the value of the counter and the two flags. I think your professor is asking that you draw a state diagram that shows transitions between different counter/flag value combinations. (My guess is that the intent is that you collapse all the counter>0 sub-states into a single sub-state labeled counter=N.)

    0 讨论(0)
提交回复
热议问题