Snow White and the Seven Concurrent Dwarfs
summary
The talk examines concurrent programming with shared mutable state in Kotlin coroutines, comparing traditional JVM primitives like volatile and synchronized to coroutine-native tools such as Mutex and MutableStateFlow. It shows how those old and coroutine-specific mechanisms affect coroutine behavior and considers whether different approaches are needed to manage shared mutable state safely.
AI-written summary · about
chapters (10)
- 0:00Shared state problem
- 7:33Kotlin sync methods
- 13:16Volatile and single-thread limits
- 18:58Classic solutions fail
- 22:03MutableStateFlow and atomics
- 29:27Mutex solution
- 32:10Cancelling coroutines issue
- 37:26Snow White approach
- 39:11Actor pattern in coroutines
- 42:25Summary
related talks
44mKotlin/Native Concurrency for Mobile Multiplatform
39mKotlin Native Concurrency Explained
39mKotlin Native Concurrency Explained
46mKotlin/Native Concurrency Model
28mConcurrency for Imposters
45mDeep Dive into Coroutines on JVM
33mVisualising concurrency with Kotlin
40mConcurrency made easy with Kotlin Coroutines
