Question

(10 points) Consider the reader-writer problem. The following are two potential solution to the problem .Neither of them work. Explain why. a.Writer code the same as slide 71 of synchronization,

reader code as follows: Reader code the same as slide 71 of synchronization, writer code as follows

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5