@@ -0,0 +1,542 @@
+package extthread;%0A%0A/**%0A * %0A * @author ibm%0A *%0A */%0A%0Apublic class ThreadA extends Thread %7B%0A%09@Override%0A%09public void run() %7B%0A%09%09synchronized (lock) %7B%0A%09%09%09if (MyList.size() != 5) %7B%0A%09%09%09%09System.out.println(%22wait begin %22 + System.currentTimeMillis());%0A%09%09%09%09try %7B%0A%09%09%09%09%09lock.wait();%0A%09%09%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09%09%09// TODO Auto-generated catch block%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%09System.out.println(%22wait end %22 + System.currentTimeMillis());%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%09Object lock;%0A%0A%09public ThreadA(Object lock) %7B%0A%09%09super();%0A%09%09this.lock = lock;%0A%09%7D%0A%7D%0A

Create ThreadA.java