public class Test {
public static final String moudle = Test.class.getName();
public Test() {
}
/**
* @param args
*/
public static void main(String[] args) throws Exception{
new Thread(new InputThread()).start();
new Thread(new InputThread()).start();
new Thread(new InputThread()).start();
}
}
class InputThread extends Thread{
private static Object lock = new Object();
public void run(){
synchronized(lock){
System.out.println("ddddd");
try {
//lock.wait();
Thread.sleep(100000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}