class myThread extends Thread
{
    myThread() {  }
    myThread(String threadName) 
    {
        super(threadName); // Initialize thread.
        System.out.println(this);
    }
    public void run() 
    { 
 	while (true)
	{
            System.out.println(Thread.currentThread().getName()+ " Running");
	} 
    }

}

public class ex0 
    {
    public static void main(String[] args) 
    {
        Thread thread1 = new Thread(new myThread(), "myThread1");
        Thread thread2 = new myThread("myThread2");
        //Start the threads
        thread1.start();
        thread2.start();
        System.out.println(Thread.currentThread());
    }
}

