4. What is displayed by the following program after the call to fork?


#include
#include

int main()
{
fork();
cout << "After fork" << endl;

return 0;
}

a. The parent process will display "After fork"
b. The child process will display "After fork"
c. Neither the parent process nor the child process will display "After fork"
d. The program does not create a child process
e. Both the parent process and child process will display "After fork"

e. Both the parent process and child process will display "After fork"

Computer Science & Information Technology

You might also like to view...

If your computer is moving slowly or you are having technical problems, you might need to ________, which will clear the system cache

Fill in the blank(s) with correct word

Computer Science & Information Technology

Right-clicking a row heading displays ________

A) a shortcut menu B) a shortcut menu and a mini toolbar C) a mini toolbar D) an Options button

Computer Science & Information Technology