Unstuck
< Freedom to Think, Act and Elevate />
30 January 2011
Java Threads - Why you can't start a thread twice?
Assume the following code
class Mythread extends Thread {
}
Mythead thread = new Mythread();
thread.start(); thread.start();
Why you cannot start the thread (i.e calling thread.start()) twice? Why JVM panics when you do that?
‹
›
Home
View web version