Create thread for Singleton class
If we create thread of singleton object by extending the Thread class, there will IllegalThreadStateException.
This exception is because we cannot call the start method on same instance twice.
But when create threads for an class using Runnable interface, the class object will sharable among different threads and there will no IllegalThreadStateException.
By extending Thread class
By implementing the Runnable interface