A summary of methods used with Threads. : Thread Creation « Thread « SCJP






Class     Method                              Type         

Thread    yield()                             static                                      

Thread    try sleep(#) catch                  static       

Thread    start()                             instance                                    

Thread    run()                               instance      

Thread    try join(optional timeout) catch    instance     

Thread    interrupt()                         instance     


The yield() method may cause a running thread to back out if there are runnable threads of the same priority. 

When one thread calls the join() method of another thread, 
the currently running thread will wait until the thread it joins with has completed.








7.1.Thread Creation
7.1.1.The simplest way to define code to run in a separate thread is to
7.1.2.A summary of methods used with Threads.
7.1.3.The Life of a Thread
7.1.4.Create Thread method 1: subclass the Thread class and implement the run() method.
7.1.5.Create a Thread method 2: implements Runnable interface
7.1.6.Creating Threads: Subclassing the Thread Class
7.1.7.Creating Thread: Implementing Runnable