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 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.