Central AsianResearch Index

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

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.

Сведения

Опубликовано
2024 · № 1 (61), С. 117-122
Язык
Английский
ISSN
2309-6977 · 2958-003X · 2958-0048
Издатель
Non-profit limited company "Manash Kozybayev North Kazakhstan University
Аффилиации
M. Kozybayev North Kazakhstan University
Siberian State University of Geosystems and Technologies