Sleeping well in the lion's den with Monix Catnap
summary
Library that implements cooperative sleeping for Monix Tasks and integrates with the Monix Scheduler to avoid blocking threads. Demonstrates a small runtime change and a parking/unparking primitive that replaces Thread.sleep, shows benchmarks comparing blocking sleeps to Catnap’s non-blocking parking, reports far fewer blocked threads, lower latency under contention, and concrete code examples plus a link to slides and the published library so the feature can be dropped into real systems.
AI-written summary · about
chapters (5)
- 0:00Introduction
- 10:00Monix Catnap overview
- 20:00Catnap features and uses
- 30:00Live Catnap demo
- 40:00Q&A
related talks
42mMonix Task: Lazy, Async and Awesome
25mLet me sleep on it improving concurrency in unexpected ways
32mLet's build an async runtime together
01h 41mThreads Considered Harmful
37mConcurrency options on the JVM
01h 08mSimplifying Concurrent Programming via Synchronization Synthesis
31mSynthesizing fine-grained synchronization protocols for implicit monitors
36mHelidon on Loom
