You click Save on a GAA match report. What puts the file in your chosen folder?
You've just typed up a GAA match report on your laptop. You choose a folder and click Save. Your word processor takes the click, but what actually makes the report appear in that folder?
These are three pieces of hardware in your laptop. The CPU runs instructions. RAM is working memory: it holds instructions and data while you use them. The solid-state drive, or SSD, keeps your saved files even after you switch off.
Start at the top. You're the user, choosing what to do. You work in an application, such as a word processor. Below it is the operating system, which handles requests from apps and manages the hardware. At the bottom are physical parts such as the CPU, RAM and SSD.
Your word processor needs a service that can save a file on the laptop. Which layer provides that service to the word processor? Pick the layer responsible.
You click Save. The word processor asks the operating system to save the document at your chosen path. The file service uses that path to manage the file and its folder entry. To write to storage, the operating system uses a driver that sends commands to the SSD.
You choose the GAA folder and name your new file report dot docx. The word processor sends that path and the document data to the file service. The service finds the GAA folder and adds the new entry. The storage driver sends the write commands, and the SSD stores the data.
Now you save a new file called budget dot xlsx in your Club folder. The spreadsheet app supplies the path. Which part handles adding the new file entry to that folder? Pick one.
Your word processor and music player both have work ready on the same core. The operating system lets a word processor task run, then switches to a music player task. Choosing which task runs next is called scheduling. Taking turns lets both apps make progress.
The CPU is hardware. It runs the instructions involved in a save, which is why you might think it organises the folders. Folder organisation is a responsibility of the operating system. Its file service follows the path and manages the entries in the folder.
A Leaving Cert question could ask you to describe the role of each layer when a user saves a new file. The user chooses the path. The application requests the save. The operating system manages the file entry. At the hardware layer, the CPU executes instructions and the SSD stores data.