()
| 12 | } |
| 13 | |
| 14 | public void pause() { |
| 15 | try { |
| 16 | Thread.sleep(1000 * 3); |
| 17 | } catch (InterruptedException e) { |
| 18 | e.printStackTrace(); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | public synchronized void methodA(String threadName) { |
| 23 | System.out.println("thread " + threadName + " starting: " + name + ".methodA()"); |