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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.