Expansion of native thread count by Object.wait() vs Condition.await()
Anton Vodonosov
avodonosov at yandex.ru
Mon Oct 9 17:50:30 UTC 2023
Thank you for the reply, Alan.
> The JEP text is correct, Object.wait does compensate, parking while
> holding a monitor doesn't (Condition.await is one case of parking).
You mean parking while holding a ReentrantLock does not compensate?
(BlockingQueues call Condition.await() while holding a ReentrantLock).
Best regards,
- Anton
More information about the loom-dev
mailing list