I had tried with the following code and it seems to be a deadlock scenario
public class MyThread {
public static void main(String[] args) {
try {
Thread.currentThread().join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
but i doubt this is not the case. Its not an deadlock. What I understood is the Main
thread is waiting for its own completion. I had dig into it but the wait method inside join is native and I'm unable to get more info over it.