How the OS keeps track of data and balances multiple apps.
In Unit 1.2, we looked at RAM and ROM. Recall their roles below to prepare for today's OS focus.
Temporary storage for the OS, apps, and data currently in use. Volatile.
Permanent storage for files and software. Non-volatile (e.g. SSD, HDD).
To explain how the Operating System manages memory allocation and data transfer to enable multitasking.
The process where the OS assigns specific blocks of RAM to programs when they start up.
"You take Block A, you take Block B."
Moving instructions and data between RAM and the CPU for processing.
Continuous flow of instructions.
The ability to run multiple apps at once by swapping between them so fast they seem to run simultaneously.
Rapid CPU swapping.
When you open an app (e.g. Spotify), the OS assigns it a unique area of RAM. The OS ensures that **App A cannot access the data of App B**. This prevents crashes and keeps data secure.
Most CPUs can only do ONE thing at a time. The OS enables multitasking by:
Allocating time-slices of the CPU to each running process.
Swapping processes in and out of the processor incredibly quickly.
The user perceives all programs as running at exactly the same time.
Memory_Simulator.html link shared in Google Classroom.In your Google Doc, answer the following 3-mark OCR exam question.
"The OS allows two apps to share the exact same memory blocks."
FALSE"Multitasking works by the OS swapping apps in and out of the CPU quickly."
TRUE"Allocation is the process of deciding which files are saved to the SSD."
FALSE