[java] How to start/stop/restart a thread in Java?