1.6Free
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
A system call is a request a program makes to the OS to do a task the program cannot do directly. It is a bridge between user programs and the kernel, so applications reach the hardware and core OS functions safely.
Your book warns that programs controlling the hardware directly can be unsafe and complex. Example: when you save in a text editor, the program uses a system call to tell the OS to write the data to the storage drive.
Your book names four types. open opens a file for reading or writing, such as a music file. read gets data from a file or input device, such as text from a document. write sends data to a file or output device, such as saving an image.
fork creates a new process by duplicating an existing one; opening a new browser tab may use it. Linux and macOS have a few hundred system calls, while Windows has nearly 2,000.
Step 1 / 7
A system call is a request a program makes to the OS to do a task the program cannot do directly. It is a bridge between user programs and the kernel, so applications reach the hardware and core OS functions safely.
Your book warns that programs controlling the hardware directly can be unsafe and complex. Example: when you save in a text editor, the program uses a system call to tell the OS to write the data to the storage drive.
Your book names four types. open opens a file for reading or writing, such as a music file. read gets data from a file or input device, such as text from a document. write sends data to a file or output device, such as saving an image.
fork creates a new process by duplicating an existing one; opening a new browser tab may use it. Linux and macOS have a few hundred system calls, while Windows has nearly 2,000.
Programs never touch the hardware themselves: they ask the kernel with a system call. open, read, write work on files and devices; fork makes a new process.
Q1. Short Question 8 (p. 17): define a system call.
A request from a program to the OS to perform a task it cannot do directly; it lets programs reach hardware safely through the kernel.
Q2. You open song.mp3, play it, then save a playlist. Name the system calls in order.
open → read → write (and the playlist file is opened before it is written).
✗ Answering open or write for the system call that creates a new process.
✓ fork creates a new process by duplicating an existing one.
✗ Swapping read and write: saying saving a file uses read.
✓ Data going out to a file or device is write; data coming in is read.
✗ Saying programs work faster and safer by controlling hardware directly.
✓ Your book says direct control can be unsafe and complex; system calls are the safe route.
1. Which system call is used to create a new process?
(d) Exercise MCQ 8 (p. 17); key p. 18; 1.6.1, p. 12.
2. Saving an image to the computer uses which system call?
(b) 1.6.1, p. 12.
3. A system call acts as a bridge between:
(a) 1.6, p. 12.
4. Reading text from a document uses:
(c) 1.6.1, p. 12.
5. About how many system calls does Windows use, according to your book?
(d) Do You Know, p. 12.
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
Free right now. No ads. Tell us what to fix.