Everything you wanted to know about threads but were afraid to ask
summary
Explains how the OS kernel schedules threads and how to measure kernel time spent on scheduling decisions, focusing on threads in Java. Covers multiple abstraction levels: thread pools, individual Java threads and their OS representations, schedulers, and thread-management strategies, highlighting potential performance problems at each level; ends with a brief mention of Project Loom.
AI-written summary · about
chapters (5)
- 0:00Introduction
- 10:23Thread and process basics
- 20:20Synchronization and performance
- 29:29Virtual threads and Project Loom
- 35:31Summary
related talks
43mA Tale of Two Cities: How Blocking Calls Are Treated?
51mFrom Linux Threads To ForkJoinPool
49mJava Dark Threads
57mUnveiling the Magical Power of Java Virtual Threads
31mJava Virtual Threads
47mThe Challenges of Introducing Virtual Threads to the Java Platform - Project Loom
02h 43mVirtual Threads, Structured Concurrency and Scoped Values in Java 25 and Beyond
49mEven threads are now virtual:past, present, future of concurrency in Java.
