To simulate the command "system". which of the system calls - fork, wait, and excel isdare to be used?
A. | fork and wait |
B. | all three |
C. | fork and excel |
D. | wait and excel |
Answer : B Explanation : When a process executes a system command like system("date"), it forks a child process, waits for it to execute the date command and terminates. This can be implemented by the child making the call exec("/bin/date", "date", (chr *)0) |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |