Loading practice questions
Match the following for Unix system calls:
| List – I | List – II |
|---|---|
| (a) exec() | (i) Creates a new process |
| (b) brk() | (ii) Replaces the core image of a process |
| (c) wait() | (iii) Changes data segment size |
| (d) fork() | (iv) Blocks caller until child terminates |
Correct Answer: D — (a)-(ii), (b)-(iii), (c)-(iv), (d)-(i)
Explanation:
UNIX system calls provide direct interfaces to the kernel: exec() replaces the process image, brk() changes the data segment space allocation, wait() pauses execution until a child finishes, and fork() spawns a new process.