eclipse java multithread program debugging
while debugging the java Multithreading program i put breakpoints. after
start method is invoking the control is not going to run menthod can you
please let me know the debug procedure.
sample code
class Test extends Thread
{
public static void main(String[] args)
{
try {
Thread t = new Thread(new Test());
t.start();
t.start();
} catch (Exception e) {
System.out.print("e ");
}
}
public void run() {
for(int i = 0; i < 2; i++)
System.out.print(Thread.currentThread().getName() + " ");
}
}
No comments:
Post a Comment