Hi friends i am new to Threads.When i run this program i can see one
thread created by me and another one is the "main" thread.When i call t.start()m my thread starts.In the docs for start they gave as
The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
In the above my new thread is current thread.Please say me the other thread which executes the run method
System.out.println("Main Thread: " + i);
Thread.sleep(1000);
}
} catch (InterruptedException e) {
System.out.println("Main thread interrupted.");
}
System.out.println("Main thread exiting.");
}
}
[/CODE]