MULTI-THREADING, CONCURRENCY AND ASYNC ON ANDROID
summary
Covers concrete internals (zygote uses clone, Linux treats threads and processes as tasks) and practical gotchas: Thread.interrupt only sets a flag so long reads must check interruption, callbacks must be delivered on the main thread, and the surprising top crash is NullPointerException, not IllegalStateException. Walks through Android tools and behaviors: Handler/Looper/MessageQueue, HandlerThread, AsyncTask (posts results via Handler), IntentService, Loaders, RxJava and support annotations, with practical cancellation and lifecycle notes.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 1:17Multitasking challenges in real life
- 4:36Threads and processes under Android
- 9:35Multi-threading and concurrency basics
- 13:48Common async pitfalls and crashes
- 17:26Single-threaded async problem
- 21:23Handler, Looper and MessageQueue explained
- 26:45Handler use cases and limitations
- 27:48AsyncTask internals and issues
- 31:19Loaders and their complexities
- 33:29IntentService for background tasks
- 35:38RxJava and async best practices
- 36:41Thread annotations and summary
related talks
49mWhat Mom Never Told You About Multi-Threading
30mExtra! Extra! Thread all about it!
28mInside Android asynchronous processing: Understanding the Event Loop
30mExtra! Extra! Thread all about it!
42mKotlin Multiplatform multithreading old and new way
39mKotlin Native Concurrency Explained
01h 01mKeynote! 10 years of Android development: the retrospective
55mControlling Multi-Core Race Conditions on Linux/Android
