log
parent
c6661899fd
commit
cdc423f2bf
|
@ -53,10 +53,11 @@ public class ThreadPool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
threadAlive++;
|
threadAlive++;
|
||||||
|
System.out.println(threadAlive);
|
||||||
executorService.execute(runnable);
|
executorService.execute(runnable);
|
||||||
} finally {
|
} finally {
|
||||||
condition.notify();
|
|
||||||
threadAlive--;
|
threadAlive--;
|
||||||
|
condition.signal();
|
||||||
reentrantLock.unlock();
|
reentrantLock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue