COMP10052-AAAF-2010-ExamplesClass-1

# In the absence of event synchronizafon and signicant

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: our PING may be answered by diﬀerent machines/processes in diﬀerent invocaFons). D is not certain either (in the case of PING, the informaFon being exchanged is always the same). In the absence of event synchronizaFon and signiﬁcant latency being incurred by remote method invocaFons, any interleaving is possible. Consider, by enumeraFon, all the possible interleavings and the ﬁnal values of x and y: (1, 2, 3) implies x = 0 y =  ­2 (1, 3, 2) implies x = 0 y =  ­3 (2, 1, 3) implies x = 0 y =  ­2 (2, 3, 1) implies x = 0 y =  ­2 (3, 1, 2) implies x = 0 y =  ­3 (3, 2, 1) implies x = 0 y =  ­3 The value of y is not determined because diﬀerent interleavings lead to diﬀerent values of y at the end of the block, but the same is not true of x: it end with the same value no ma`er the interleaving. Note that you could have concluded the fact about the ﬁnal value of x irrespecFve of the iniFal values and of the possible interleavings, because x is assigned only once and by a value that is not changed insi...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern