Skip to main content
6 votes
Accepted

Why ReentrantLock is better for virtual threads than synchronized?

Virtual threads (fibers) are indicated for tasks that involve blocking, tasks that are not CPU-bound. Blocking tasks include those that perform file I/O, logging, network calls, database access, etc. ...
Basil Bourque's user avatar
3 votes

Are virtual threads supported in Open Liberty v23+

The article that Jared refers to is now published on InfoQ.com: https://www.infoq.com/articles/java-virtual-threads-a-case-study/ The article mainly discusses what our performance team found when they ...
Laura's user avatar
  • 43
1 vote
Accepted

Best data structure for storing 2048 minecraft ItemTags?

I think the first thing you should consider is: "Do I really need people to be able to choose a stack size of 1837?". What would be the player's benefit of choosing such an arbitrary number? ...
QBrute's user avatar
  • 4,501
1 vote
Accepted

Spring Security 6 - how to handle InvalidBearerTokenExeption

you can add an authenticationEntryPoint as below @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf(AbstractHttpConfigurer::disable) ...
DingHao's user avatar
  • 1,046
1 vote
Accepted

Error creating bean with name 'refreshEventListener' after upgraded to Java 21 and SpringBoot 3.2.4

It seems you have been using incorrect hibernate-related dependencies. I added the following in your pom.xml <dependency> <groupId>io.hypersistence</groupId> <...
N Sarj's user avatar
  • 419
1 vote

What can explain a deadlock only occuring with virtual threads?

Pinning is a lingering effect of using virtual threads and can unfortunately lead to serious deadlock scenarios. I've encountered these deadlocks while using various external libraries like Apache ...
Abhishek Kumar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible