Abstract
Chapter 1 introduced the concept of the main thread, or UI thread, in which most events are handled. Even though you are not prevented from executing all your code from within the main thread, your application typically uses more than one thread. As a matter of fact, several threads are created and run as part of your application even if you don’t create new threads yourself. For example, Eclipse’s DDMS perspective shows these threads when an application runs on an Android 3.1-based Galaxy Tab 10.1:
-
main
-
HeapWorker
-
GC (Garbage Collector)
-
Signal Catcher
-
JDWP (Java Debug Wire Protocol)
-
Compiler
-
Binder Thread #1
-
Binder Thread #2
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Hervé Guihot
About this chapter
Cite this chapter
Guihot, H. (2012). Multithreading and Synchronization. In: Pro Android Apps Performance Optimization. Apress. https://doi.org/10.1007/978-1-4302-4000-6_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4000-6_5
Publisher Name: Apress
Print ISBN: 978-1-4302-3999-4
Online ISBN: 978-1-4302-4000-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)