Match the following WINDOWS system calls and UNIX system calls with reference to process control and file manipulation.
Match the following WINDOWS system calls and UNIX system calls with reference to process control and file manipulation.
Windows
A. Create - process ( )
B. Wait for single object ( )
C. Create file ( )
D. Close Handle ( )
UNIX
i. Open ( )
ii. Close ( )
iii. Fork ( )
iv. Wait ( )
Code :
A B C D
Show answerHide answer
Correct answer: (B) iv iii i ii
Explanation
Note: the standard correspondence is CreateProcess() - fork(), WaitForSingleObject() - wait(), CreateFile() - open(), CloseHandle() - close(), i.e. A-iii, B-iv, C-i, D-ii, which is option (a); the book keys (b). The book's mapping is A-iv, B-iii, C-i, D-ii.