Concurrency in Java, Mutithreading simple programs to understand concepts