ACTIVITY
Objective:
Demonstrate how system calls work when managing files.
Instructions:
1. Prepare:
Give each student a small card labeled with a file name (e.g., photo.jpg, homework.docx, song.mp3). Write "open", "read", "write", and "close" on the board.
2. Steps:
Call one student the "Operating System". Another student plays the "Application" (e.g., Photo Viewer). The Application requests: "OS, please open photo.jpg". The OS responds by selecting the card from the "file list" and handing it over. Repeat with read, write, and close for different files.
3. Wrap-up Discussion:
Explain that each action represents a system call.