SharedCellSync 썸네일형 리스트형 thread 예제 2 package thread; // SharedCellSync.java public class SharedCellSync { public static void main(String args[]) { holdInteger h = new holdInteger(); produceInteger p = new produceInteger(h); consumeInteger c = new consumeInteger(h); p.start(); c.start(); } } class produceInteger extends Thread { private holdInteger pHold; public produceInteger(holdInteger h) { pHold = h; } public void run() { for (i.. 더보기 이전 1 다음