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.
...
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 ...
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? ...
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)
...
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>
<...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
java-21 × 210java × 125
spring-boot × 51
virtual-threads × 32
spring × 14
maven × 14
project-loom × 10
spring-boot-3 × 10
intellij-idea × 9
multithreading × 7
gradle × 7
eclipse × 6
javafx × 6
java-17 × 6
tomcat × 5
concurrency × 5
structured-concurrency × 5
spring-webflux × 4
project-panama × 4
android × 3
xml × 3
google-app-engine × 3
graphql × 3
jvm × 3
pattern-matching × 3