Three ways to create simple multi-thread program in java