Thread

There are two methods of implementing Thread

Inheritance : Where the class extends Thread.

    • Disadvantage Single inheritance in java prevents the class from inheriting from the

Implementing Runnable.

Thread State Transition Diagram

Thread functions

    • Thread.sleep(milliseconds)

    • Thread.yeild()

    • t.join()

Interesting Links