For the More Curious: Processes vs Tasks

All objects need memory and a virtual machine to live in. A process is a place created by the OS for your application’s objects to live in and for your application to run.

Processes may own resources managed by the OS, like memory, network sockets, and open files. Processes also have at least one, possibly many, threads of execution. And, on Android, your process will always have exactly one virtual machine running.

Before Android 4.4 (KitKat), Dalvik was the process virtual machine used by the Android OS. Whenever a process started, a new instance of a Dalvik virtual machine would spawn to house that process. Android Runtime (ART) has since replaced Dalvik, becoming the accepted process ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

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