Тёмный

Java Virtual Threads 

Java
Подписаться 186 тыс.
Просмотров 20 тыс.
50% 1

Concurrent applications, those serving multiple independent application actions simultaneously, are the bread and butter of Java server-side programming. The thread has been Java’s primary unit of concurrency since its inception and is core to the entire Java platform. However, it can no longer efficiently represent a domain unit of concurrency. As a result, Java has seen a proliferation of libraries and frameworks that offer scalability while abandoning the thread as the unit of software concurrency-and, with it, the support of Java’s observability tooling. In this session, learn how Project Loom aims to reinstate the thread as an efficient unit of concurrency by adding a lightweight implementation of threads to the Java platform.
An Oracle DevLive Level Up - Java Developer Day session.
Presented by Sergey Kuksenko, Principal Member of Technical Staff
More info ➱ inside.java/ta...
More Level Up videos ➱ • Oracle DevLive Level U...
Tags: #Java #OpenJDK #JDK20 #concurrency

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@kevindurant4952
@kevindurant4952 Год назад
01:10 Now it's possible to have millions of Java processes running concurrently. 04:28 Traditional threads are expensive, the solution could be asynchronous programming, but asynchronous programming has very intrusive downsides. 06:35 Project Loom tries to make Threads cheaper. 06:38 What is a Virtual Thread? Conclusion: they feel like normal Threads, it allows you not to care about the details underneath. 07:38 We call traditional Threads, Platform Threads. 08:39 Virtual Thread builder example and newVirtualThreadPerTaskExecutor() example. 09:26 Virtual Threads x Platform Threads x Sequential Benchmark. 12:15 Real Application Benchmark data. The higher the bar, the better the framework scores. 15:35 Little's Law, it works for stable systems, not for systems which continually grow. An example on how Thread-per-Request was their bottleneck in an application. 18:26 Little's Law Chart, Platform Threads x Virtual Threads throughput. 19:39 How to adopt Virtual Threads. Write synchronous code inside the task, as boring and as straightforward possible. 21:02 You should NOT pool Virtual Threads. If you need to pool, or rather limit async execution, use the Semaphore class. 22:10 Don't cache in ThreadLocals. Instead use Scoped Values. 24:10 Avoid pinning. 28:24 (end) How to adopt Virtual Threads frame. 28:54 Structured Concurrency, short intro. For Spring enthusiasts, an interesting blog post: spring.io/blog/2022/10/11/embracing-virtual-threads. This post shows how you can change the Thread-per-Request executor to a newVirtualThreadPerTaskExecutor.
@tanveerhasan2382
@tanveerhasan2382 Год назад
Bless your heart
@sergeyshcherbakov3653
@sergeyshcherbakov3653 Год назад
Молодец, Серёга, хорошо объяснил !
@oneextrabit
@oneextrabit Год назад
Very informative and detailed! This talk can serve as a good summary as to why/when you should use VT.
@prunge
@prunge Год назад
Will be great when we can write performant concurrent code with this. Had to debug some Spring Webflux / Reactive stuff lately and it was not easy.
@juliandurchholz
@juliandurchholz Год назад
Will you introduce API to offer control over which executor a virtual thread should run on?
@CarlosSaltos
@CarlosSaltos Год назад
Cool T-shirt !! ... Cool talk !! 👍😎
@dumdumdumdum8804
@dumdumdumdum8804 Год назад
Another language mojo is coming in the AI machine learning space, valhalla should come early or some struct like construct along with vector APIs otherwise java could never take off for AI/Machine learning space.
@FurkanAliUnal
@FurkanAliUnal Год назад
Thank you for informative videos
@srinutippana
@srinutippana Год назад
Very informative
@jackgame8841
@jackgame8841 Год назад
really good talk
@fertiz_
@fertiz_ Год назад
hello
Далее
DAXSHAT!!! Avaz Oxun sahnada yeg'lab yubordi
10:46
Просмотров 515 тыс.
Java Virtual Threads
9:06
Просмотров 38 тыс.
Java 21… and Beyond
48:30
Просмотров 24 тыс.
Why User-Mode Threads Are Good for Performance
20:01
Просмотров 3,4 тыс.
Java's Virtual Threads - Next Steps
37:52
Просмотров 15 тыс.
Java 21 new feature: Virtual Threads #RoadTo21
33:35
Просмотров 64 тыс.
DAXSHAT!!! Avaz Oxun sahnada yeg'lab yubordi
10:46
Просмотров 515 тыс.