I think x-1 can arrive before y, the 100 millis sleep is not good enough to ensure that it will not happen