package cn.waitandnotify;
public class Test {
/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
Object i = new Object();
Object love = new Object();
Object you = new Object();
Thread t1 = new Thread(new wait1("我", you, i));
Thread t2 = new Thread(new wait1("爱", i, love));
Thread t3 = new Thread(new wait1("你", love, you));
t1.start();
Thread.sleep(200);
t2.start();
Thread.sleep(200);
t3.start();
}
}