4 ms·
I thought the blog was great but "in summary" conclusion bad. The summary merely stated that Java virtual thread are great. I expected a summary of the problem
by pierrebai 3y ago
I thought the blog was great but "in summary" conclusion bad.
The summary merely stated that Java virtual thread are great. I expected a summary of the problem and solution, for example something like:
When using Java 21 virtual threads, you can end-up starved of carrier threads due to all carrier threads waiting on a pool exhausted resources with no thread available to free such resources. The solution is to wrap those resources in a virtual-thread aware object. In our case, we solved our problem by wrapping connections in semaphores.