Skip to content

ResourceLock Pool #4486

Answered by marcphilipp
roded asked this question in Q&A
Apr 16, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

There's no built-in mechanism for this. Since parallel execution uses a ForkJoinPool, I'd try using ForkJoinPool.managedBlock(ManagedBlocker) to acquire a resource from your pool which should at least ensure that the potentially blocked thread is compensated for.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@roded
Comment options

@marcphilipp
Comment options

@roded
Comment options

Answer selected by roded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants