ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Java Beyond the Textbook: 13. Loom, Virtual Threads, Continuation Abstractions & Carrier Pinning

java virtual threads

project loom mechanics

thread pinning java

jvm carrier threads

forkjoinpool scheduling

continuation stack frames

platform threads vs virtual threads

jcmd thread dump to file

jdk virtualthreadpinned jfr

java 21 concurrency

enterprise microservice scaling

reentrantlock virtual threads

synchronized block pinning

backend performance tuning

finite bytes under the hood

advanced systems architecture

Автор: Finite Bytes

Загружено: 2026-06-17

Просмотров: 435

Описание: When Project Loom introduced Virtual Threads in Java 21, it fundamentally shattered the classic 1:1 scaling blockade that constrained platform threads for decades. However, migrating enterprise architectures to an M:N concurrency model requires a deep understanding of low-level runtime execution, continuation stacks, and scheduling behaviors.

In this episode, we go under the hood of Project Loom to perform an autopsy on pinned carrier threads. We look back at how unbounded queues render maximum pool sizing entirely useless, causing progressive memory exhaustion under traffic spikes. We contrast heavy platform threads with lightweight user-mode virtual threads, tracking the exact off-heap memory footprints and native context-switching penalties that govern traditional runtimes.

From there, we trace how the JVM mounts virtual threads onto ForkJoinPool carrier threads, detailing how core libraries intercept blocking system calls to unmount execution frames onto the Java Heap as Continuations. Finally, we expose the catastrophic structural risk of Thread Pinning triggered by legacy synchronized blocks and native monitors, lay out the modern architectural rules of un-pooled thread design or semaphore-based throttling, and construct a senior diagnostic pipeline using jcmd and JVM Flight Recorder (JFR) event audits.

Timestamps:
0:00 The Heavyweight Thread Bottleneck
1:10 Unbounded Queue Post-Mortem: The Sizing Illusion
2:45 Platform vs. Virtual Threads: Decoupling the OS Kernel
4:12 Carrier Pools and Continuation Stack Offloading
5:55 The Thread-Pinning Trap: Legacy Synchronized Monitors
7:38 Redesigning Architectures: Discarding the Thread Pool
8:05 Senior Diagnostics: jcmd Files and JFR Event Audits

Get the complete Finite Bytes advanced backend systems blueprints by subscribing to the channel.

#java #programming #softwareengineering #backend #systemdesign #concurrency #jvm #projectloom

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Java Beyond the Textbook: 13. Loom, Virtual Threads, Continuation Abstractions & Carrier Pinning

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]