~/talk

Why User Mode Threads Are Often the Correct Answer

Talkat Code Mesh LDN 2020 · 2020-11-05..11-06· [concurrency, software-architecture]
links:none on file
slides:none on file

Project Loom introduces virtual threads so a JVM can support millions of threads and let each thread be chosen to run in user mode or as an OS thread, preserving existing threaded APIs so old binaries run unchanged. It contrasts with async/await which requires duplicated I/O APIs and different scheduling defaults. Key tradeoffs: need resizable stacks and backend/compiler support, FFI and stack pointers complicate user-mode threads, and context-switch cost matters far less than throughput governed by Little’s law when I/O dominates.

AI-written summary · about

  1. 0:00Intro
  2. 2:44Concurrency: The Algorithmic View
  3. 3:45Concurrency: The Syntactic View
  4. 5:05Process: Unit of Concurrency
  5. 9:54Thread vs. Async/Await
  6. 14:36Resizable Stack
  7. 17:57Performance
  8. 18:56Syntactic Concurrency: Generators et al.
  9. 20:18Context-Switching Impact: Generators
  10. 22:06Concurrency: Transactions
  11. 26:02Context-Switching Impact: Transactions
  12. 28:15Conclusion
  13. 29:02User-Mode Threads
~/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.