13. Cores and Threads

To run Android applications quickly and efficiently, dual-core chips and quad-core processors are developed and implemented in the Android devices. To take advantage of multicore architectures, certain enhancements are made in Android modules, including the thread scheduler. It is the job of the thread scheduler to divide and distribute the application’s task among different cores and take their maximum advantage.

For running an application efficiently, memory management is also quite important. A garbage collector plays a major role in memory recycling. One more factor that optimizes an application is having noninteractive tasks performed by background threads. Threading enables application of multitasking features.

In ...

Get The Android™ Tablet Developer’s Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.