How can your laptop play music while you type, even with just one processor core?
You're writing up your science homework on a school laptop while a playlist runs. You click back into your document and the song keeps playing. If the laptop has just one processor core, how can both apps make progress?
Your document editor is application software for writing, and your music player is application software for listening. Both need RAM to hold the instructions and data they're using. Both need processor time to run those instructions. The operating system is system software that manages access to these shared resources.
Your document editor is already using some RAM. When you open the music player, the operating system sets aside some available RAM for it to start running. The editor keeps the memory it's using. Giving an app a share of memory is called allocating memory.
Your document is still open when you launch the music player. There's enough free RAM for both apps. What does the operating system do with memory as the music player starts? Pick the best answer.
The music player gets a turn on the core. You click back into your document. The editor gets a turn to handle your typing, and then the player gets another turn in the background. Clicking changes which app you're using. The operating system chooses which ready task runs next. That's scheduling.
With both apps open, you have five hundred megabytes free. You quit the music player, and the operating system frees two hundred megabytes that only the player was using. The editor stays open. If nothing else changes, add the two amounts to get seven hundred megabytes free.
This time, the laptop has four hundred and fifty megabytes of free RAM. You quit an app and it releases another hundred and fifty megabytes. Nothing else changes. How much RAM is free now? Pick an answer.
You might think each open app owns a core, or that any app using RAM must be running right now. On this laptop, the apps take turns on the same core. While one app waits for another turn, its instructions and data can stay in RAM.
The operating system starts applications and manages them while they're open. It handles input from your keyboard and output to your speakers. It also checks whether you're allowed to open a protected file. A backup utility is system software too. It makes copies so you can recover lost files.
For an AQA-style question, explain how the operating system manages memory and processor time when two applications are open. For memory, describe what the operating system does when the player opens and when it quits. For processor time, explain how taking turns on the same core lets both applications make progress.