
public class JI9053120 {
	public static void main(String[] args) { 
		Thread t = new Thread() { 
			@Override 
			public void run() { 
				System.out.println("ThreadJoinDeadlock.main(...).new Thread() {...}.run() thread running"); 
				try { 
					Thread.sleep(60 * 1000); 
				} catch (InterruptedException e) { 
					e.printStackTrace(); 
				} 
				System.out.println("ThreadJoinDeadlock.main(...).new Thread() {...}.run() thread exit"); 
			} 
		}; 
		t.setDaemon(true); 
		long joinstart = System.nanoTime(); 
		System.out.println("ThreadJoinDeadlock.main() started"); 
		t.start(); 
		try { 
			t.join(10 * 1000); 
		} catch (InterruptedException e) { 
		} 
		long joinend = System.nanoTime(); 
		System.out.println("ThreadJoinDeadlock.main() end join after " + (joinend - joinstart) / 1_000_000 + " ms"); 
	} 
}
