9.1.1 Naming a thread



Thread thread = new Thread(runnable,"name");
thread.getName();
 

9.1.2 Sharing code and data among threads


9.1.3 Another way to create thread



Class Thread implements interface Runnable, so you can inherite a class from Thread, override run().
 
Next Page