Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,804 members, 7,827,955 topics. Date: Tuesday, 14 May 2024 at 08:06 PM

Android Multitasking And RAM Management - Phones - Nairaland

Nairaland Forum / Science/Technology / Phones / Android Multitasking And RAM Management (421 Views)

Samsung Galaxy A7 2018 Vs Huawei Y9 2019 Speed Test & RAM Management (photos) / Infinix Note 5 Vs TECNO Camon X Pro - Speed Test, RAM Management & Battery Life / TECNO Camon X Pro Vs Phantom 8 - Speed, Benchmarks and Ram Management Test (2) (3) (4)

(1) (Reply)

Android Multitasking And RAM Management by atheistandproud(m): 9:48pm On Apr 21, 2022
Multitasking and RAM management are two very important terms used when discussing smartphones, especially the smartphone experience. But for a long time now, it has mostly flown under the radar of the general public.

Many of people who do discuss it, tend to use Multitasking and RAM management interchangeably. Note that even though both terms are related, they are not exactly the same.

What is Multitasking?
Multitasking, in the general sense of the word, is the ability to be able to do more than one thing at a time. With smartphones, multitasking means handling more than one app.

Once upon a time, phones could only handle one app or one task. Just one. Nothing more and nothing less. Today however, smartphones can handle several apps at once. Now you can play or listen to music, whilst browsing the web and/or checking your email.

Read: What is RAM?

How does multitasking on smartphones work?
The Operating System (OS) is in charge of multitasking. This is very true for iOS, although on Androids, the software skin usually has more of the final say.

The OS handles all instructions from the user and passes them on to the hardware. It is also in charge of all app processes in the RAM as well as RAM management. (Yeah, RAM management is a part of multitasking).

The operating system contains the address of all locations of data on the smartphone. These include both physical (RAM & Internal storage) and virtual (software). These addresses are stored in the RAM.

Whenever you boot up (turn on) your smartphone, your OS as well as all these addresses are immediately loaded into the RAM.

When you request for an app, the OS serves up the address to the CPU cores. Whilst the CPU cores go to work on tasks, the OS manages the instructions given to the CPUs. It also manages the apps that are in memory (RAM).

All Applications on your phone are in three states:

running: apps are apps that are currently in use
sleeping: apps are apps that are in memory but not in use
closed: apps are apps that not in use
Paging and addressing
As earlier explained, memory usually begins virtually as software. Memory is supported by hardware. The virtual memory is mapped onto the hardware (RAM).

To better multitask and manage memory (RAM), the OS divides the available memory into pages. A page is a fixed block of memory in virtual (software) while a page frame is a fixed block of physical memory.

Pages are usually 4KB in size. There are usually a lot of pages in the RAM and the OS shares it to the app processes in memory (RAM).

Pages are mapped onto the page frame. Thus the page frame supports or is a physical representation of the virtual memory.

On most phones, there is a memory management unit (MMU). This MMU helps to convert virtual memory addresses to physical memory addresses.

RAM management
RAM management refers to the different techniques that smartphones use to manage RAM. Smartphone OS manage memory (RAM) in three main methods:

Compression
Swapping
Killing
Compression
As the RAM begins to fill up, the OS would compress app processes to smaller sizes and move them to the zRAM.

Read: zRAM explained

Swapping
In order to free up RAM space, the OS may move app processes from the main memory (RAM) to the virtual memory extension.

Read: What is Virtual Memory?

Killing
The OS may completely stop (kill) app processes and remove them from memory.

The OS would usually save cache from running app processes before killing them. This would ensure that the user continues from where they left off.

https://inquisitiveuniverse.com/2022/04/21/multitasking-and-ram-management-on-smartphones/


Test your smartphone knowledge

1. Which GPU is the LEAST powerful? (Mali G57 MC2, Adreno 610, PowerVR GE8320, AMD Xclipse).

2. ___ is the most important ingredient for a photo.

3. Why are DSLR cameras better than Smartphone cameras? (Manufacturer, sensor size, lenses, pixel count)

4. A large megapixel count is good for ___. (Detail, color, brightness, appearance).

5. ___ is the part of the SoC that helps to process images.

6. Smartphone cameras are able to keep up with digital camera because of ___. (Software, sensors, megapixels, optics).

7. A 48MP and 108MP cameras are reported as 12MP and 27MP respectively by CPU-Z. What could be the reason why?

8. The storage that interfaces directly with the cpu cores is __ (RAM, internal storage, micro SD card, extended RAM)

9. RAM is important for all the above except...
a. Provides a workspace for the CPU cores
b. Loads running apps into memory
c. Determines CPU power
d. Holds the addresses of all the data

10. One of the following is not true about virtual memory
a. Acts as swap space
b. Holds app processes when RAM is full
c. It is a part of RAM
d. Somewhat improves multitasking

3 Likes 2 Shares

Re: Android Multitasking And RAM Management by DONFRANSKID(m): 5:24am On Apr 22, 2022
Thanks boss your content are always educative

1 Like

Re: Android Multitasking And RAM Management by atheistandproud(m): 7:28am On Apr 22, 2022
DONFRANSKID:
Thanks boss your content are always educative

You're welcome

(1) (Reply)

MTN, GLO, 9mobile, Airtel To Increase SMS, Call Tariffs / How To Add 512 People To A Group Chat on WhatsApp And Share Files Up To 2GB / Reasons For Growth Of Mobile Phone Accessories Market

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 24
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.