~/talk

MULTI-THREADING, CONCURRENCY AND ASYNC ON ANDROID

Talkat droidcon NYC 2016 · 2016-09-29..09-30· [android, concurrency]
slides:none on file

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

  1. 0:00Introduction and speaker intro
  2. 1:17Multitasking challenges in real life
  3. 4:36Threads and processes under Android
  4. 9:35Multi-threading and concurrency basics
  5. 13:48Common async pitfalls and crashes
  6. 17:26Single-threaded async problem
  7. 21:23Handler, Looper and MessageQueue explained
  8. 26:45Handler use cases and limitations
  9. 27:48AsyncTask internals and issues
  10. 31:19Loaders and their complexities
  11. 33:29IntentService for background tasks
  12. 35:38RxJava and async best practices
  13. 36:41Thread annotations and summary
~/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.