62,620
社区成员
发帖
与我相关
我的任务
分享 Thread t = new Thread(() -> {
synchronized(Object.class) {
try {
Thread.sleep(3000L);
Object.class.notify();
} catch (InterruptedException ex) {
;
}
}
});
t.start();
synchronized(Object.class) {
Object.class.wait();
System.out.println("hello world");
}