synchronized (this) {
                try {
                    wait(10000);
                } catch (InterruptedException ex) {
                    Logger.getLogger(Th2.class.getName()).log(Level.SEVERE, null, ex);
                }
                 //其他操作
}问题:
我知道wait的时候,就放弃了对this的锁,问题是等时间过去后,这部分代码还需要获得this的锁才能运行吗?
或者wait()后面带很多程序,那么被notify之后,是否也需要获得这个锁才能运行?