(Java)Thread Synchronization - ATM
package thread_ex; class ATM implements Runnable { private long depositeMoney = 10000; public void run() { synchronized (this) { for (int i = 0; i < 10; i++) { notify(); // 스레드를 실행대기 상태로 변경 try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } if (getDepositeMoney() 0) { depositeMoney -= howMuch; System.out.print(Thread.currentThread().getName() + " , "); System.out..