Option 1 is correct.
Both the incrementation and the printing operations are in the same synchronized block. As such it is like an atomic operation. If you increment, then you have to print.
At any given time since only one
thread can increment x and y, and since you are incrementing in steps of one, the correct choice would be option 1 (assuming x and y were initialized with the same value)