What happens if we come across a scenario where by:
SyncTest is new'ed - SyncTest
test = new SyncTest();
this results in x = 0; y = 0;
Thread A calls setX(i);
x = 1; y = 0;
Thread B calls check();
shouldn't it return true for the evaluation of x!=y ???
[ Jess adjusted the [code] so its not all on one line ]
[ November 16, 2002: Message edited by: Jessica Sant ]