Correct answer is given as choice 1. But I thought, it was option 4, as the order of thread execution is entirely VM dependent.
Well, yeah... but... Are there any VMs that will starve a thread for 4 whole seconds? Especially, since there are no other running threads in the system?
For the other case to happen, the inactive thread has to start first, sleep for 4 seconds, and in that time, the VM does nothing. It may be VM dependent, but have you seen a VM that does that?
Generally, when we are talking about starting threads, timeslice periods, priority behaviors, these are in the realm of milliseconds.
Henry