Skip to main content

Multithreading and Synchronization

  • Chapter
  • 1184 Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics