pull/121/head
yihua.huang 11 years ago
parent c6661899fd
commit cdc423f2bf

@ -53,10 +53,11 @@ public class ThreadPool {
}
}
threadAlive++;
System.out.println(threadAlive);
executorService.execute(runnable);
} finally {
condition.notify();
threadAlive--;
condition.signal();
reentrantLock.unlock();
}
}

Loading…
Cancel
Save