~/talk

Project Loom: Revolution in Concurrency or Obscure Implementation Detail?

Talkat IntelliJ IDEA Conf 2022 · 2022-09-29..09-30· [concurrency]
slides:none on file

Project Loom claims the JVM can run millions of lightweight threads by using continuations and a small pool of OS-backed carrier threads (~10) to schedule many user-level 1,000,000 virtual threads; demos create millions of sleepers and a bridge Executor spawns a virtual thread per task. Implementation moves suspended stacks onto the heap (stack moved to heap), so deep call chains inflate GC and memory, CPU-bound work lacks preemption, and Jetty’s benchmarks show modest real-world gains — promising but not a free lunch.

AI-written summary · about

  1. 0:00Introduction
  2. 2:42Loom adoption today
  3. 4:09Threads and virtual threads
  4. 16:09Cost of platform threads
  5. 16:31Loom goals and virtual threads
  6. 21:27Continuations and virtual threads
  7. 28:51Real-world impact
  8. 33:47Hello world demo
  9. 36:54Structured concurrency
  10. 39:46Tasks over threads
  11. 41:12Disadvantages of virtual threads
  12. 46:27Memory overhead concerns
  13. 48:54Preemption limits
  14. 51:44Virtual threads vs reactive
  15. 54:31Switch to virtual threads?
  16. 55:56Resources and perspectives
  17. 57:00Q&A: carrier threads
  18. 59:05Q&A: thread pools
  19. 1:00:30Closing
~/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.