This content has been marked as final. Show 2 replies
hither() reads b and writes a. yon() reads a and writes b. They are executing concurrently in two different threads.
Thanks for reply.
Yes , I do agree , they are independent of each other .
My confusion is ,
1) why should Main memory even try to decide the order in which the read of write should happen . As they are independent , as when Main memory gets the request for read or write , it should perform.
2) Is there any scenario in which the below case can happen?
write a->read a,write b -> read b
And if its not possible, whats the point of explicitly stating
It is not permitted for an action to follow itself.
Yes , this might lead to ambiguous scenario , but even with arranging them in order we are unable to predict the solution.
Beg you pardon, if I am misunderstanding some concept , but I am unable to relate the picture completely .