Loading practice questions
Match the following WINDOWS system calls and UNIX system calls with reference to process control and file manipulation:
| Windows | UNIX |
|---|---|
| (a) CreateProcess() | (i) read() |
| (b) WaitForSingleObject() | (ii) close() |
| (c) ReadFile() | (iii) fork() |
| (d) CloseHandle() | (iv) wait() |
Correct Answer: B — (a)-(iii), (b)-(iv), (c)-(i), (d)-(ii)
Explanation:
Windows CreateProcess() corresponds functionally to the UNIX fork() and exec(), WaitForSingleObject() maps to wait(), ReadFile() to read(), and CloseHandle() to close().