~/talk

What's your favourite number of threads?

Talkat Jfokus 2026 · 2026-02-02..02-04· [java]
links:none on file
slides:none on file

Claim: the right thread count really depends — CPU-bound tasks hit a plateau around 8–12 threads on an 8-core box, while IO-bound work follows the formula cores × (1 + wait/service) (commonly cores+1) and benefits more from virtual threads (few KB each vs ~1MB native). Container CPU limits (e.g. 250m = 250ms/s) change effective cores. Ultra-low-latency systems instead use one thread with Disruptor to keep hot caches and reach tens of microseconds. Favorite number: zero (no work, no bugs).

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:49Defining and sourcing threads
  3. 4:46Benchmarking performance
  4. 5:52Virtual threads analysis
  5. 7:09Containerization and millicores
  6. 8:11The case for single threading
  7. 10:24Complexity of multi-threading
  8. 12:49Conclusion and final answer
~/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.