~/talk

Untangle your App: Efficient Threading in Android

Talkat droidcon San Francisco 2018 · 2018-11-19..11-20· [android, concurrency]
speakerdeck:yhartanto
links:none on file

Explains where Android and RxJava actually create native threads and why apps hit pthread_create ENOMEM, tying it to 140 KB stacks for worker threads vs 8 MB main thread, RLIMIT_NPROC limits (≈9,500 on a Nexus 6P, ≈1,000 on older phones), and vm.max_map_count/mmap virtual memory caps. Compares single-thread executors, bounded round‑robin pools (deadlock/thread‑starvation risk) and unbounded IO pools (OOM risk), and shows an RxJava scheduler wrapper used to monitor and reduce unnecessary worker creation.

AI-written summary · about

  1. 0:00Introduction to Android threading
  2. 1:10Main thread mechanics
  3. 2:36Thread starvation deadlock
  4. 4:03Thread pool limitations
  5. 6:31Out of memory errors
  6. 12:10Thread creation limits
  7. 16:03Memory mapping constraints
  8. 19:34Why threading remains hard
  9. 19:55RX Java schedulers overview
  10. 22:46Worker and thread behavior
  11. 24:53Computation scheduler details
  12. 27:21IO scheduler behavior
  13. 28:23Threading in RX vs Java
  14. 29:05Closing thoughts on threading
~/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.