What Mom Never Told You About Multi-threading
summary
Parses two 30MB Wikipedia XML dumps and counts words using multiple approaches: plain threads and locks (~22s), a split-threaded run with concurrent hash map (~19s), RxJava merge (best first pass ~17s), and Kotlin coroutines (similar). Identifies XML I/O, object churn/GC and lock contention as real bottlenecks, shows a divide‑and‑conquer range split that drops time to ~14s, and insists on measurement, immutability, and picking the right tool.
AI-written summary · about
chapters (4)
related talks
49mMobiconf 2018: Fernando Cejas, IBM
33mUntangle your App: Efficient Threading in Android
39mUnblocking The Main Thread: Solving ANRS and Frozen Frames
44mCoordinating Space and Time
36mJava vs. Kotlin: The Ultimate Showdown of Virtual Threads & Coroutines
36mCan LLMs Reproduce Four Years of Compose Migrations? Probing Automation Limits with 279 Real-World XML Projects
49mWhat Mom Never Told You About Multi-Threading
43mBattle of the Titans: RxJava vs Kotlin Coroutines
