Hi,
In the following code, after a few tries, I got an output such as this?
sandy starting
jason starting
jason ending
sandy ending
I have synchronized the run method so that the first entering
thread will have the lock and finish first. But seems like "sandy" entered first and yet, "jason" is the one who finishes first followed by "sandy". Why is this so? Thanks for the help.