~/talk

Project loom: Modern scalable concurrency for the Java platform

Talkat Joker 2020 · 2020-11-25..11-28· [concurrency, java]
slides:none on file

Project Loom adds cheap virtual threads to the JVM by implementing continuations in HotSpot and multiplexing them on a small pool of carrier OS threads via a ForkJoin-based scheduler. Virtual threads use about 256 bytes per virtual thread plus small stacks and achieve context switches in hundreds of nanoseconds, allowing demos that create one million virtual threads and run. Compatibility keeps java.lang.Thread and ThreadLocals but current limits include pinned carriers for native frames or when parking while holding a monitor; tooling (debugger, JFR) and an early-access JDK build are available.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:00Project Loom overview
  3. 3:48The state of Java threads
  4. 6:45Synchronous vs asynchronous
  5. 13:31API design considerations
  6. 18:22Implementation details
  7. 22:35Live coding demonstrations
  8. 39:27Advanced server demo
  9. 47:25Q&A and limitations
  10. 51:49Preparing code for Loom
  11. 54:15Tooling and future outlook
  12. 1:07:19Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.