hi,Mohit.After the 5th line ,the thread of b also becomes runnable but there is no gurantee that JVM will select this thread That's upto the scheduler.In other JVM or even in another execution of program,the output may change .If you want a specific thread to run you can influence JVM by methods like sleep,setPriority etc.
So ,the main point is even if you start a thread that doesn't mean it will be in running state.It comes into runnable state and after that which thread executes for how much time is upto scheduler.