VIRTUAL THREADS IN JAVA 19 AND SPRING BOOT 3: ENHANCING PERFORMANCE AND EFFICIENCY OF APPLICATIONS

2024

Full text Open access: Hybrid Metadata (CSL-JSON)
DOI 10.54596/2958-0048-2024-1-117-122
Data confidence 70 medium
How this score is calculated

It is built from checkable properties of the record itself: whether the article has a DOI, how many independent sources confirmed its data, whether the required fields are filled in, and how recent the latest confirmation is. Disagreement between sources and a missing identifier lower it. A value of 80 or above means the record was published without further checking; 60 to 79 means it is published at reduced confidence, with a manual check advisable. A record verified by an editor by hand is never pushed below 90 by a recalculation. This scores our data about the article, not the article itself.

Abstract

This article explores virtual threads, a new feature introduced in Java version 19. Virtual threads are an abstraction that allows the creation of numerous threads without requiring dedicated operating system threads for each. This significantly reduces the overhead costs of multithreading, leading to improved performance and efficiency of applications. The article discusses the working principles of virtual threads, their advantages and disadvantages. It also examines the support for virtual threads in the Spring Boot 3 framework. Research indicates that virtual threads can significantly enhance the performance of applications handling concurrent network requests. For instance, a Spring Boot application executing 1000 concurrent network requests demonstrated a 20% performance improvement when using virtual threads compared to traditional threads.