Unix IPC Question:
Predict the output of the following program code
main()
{
fork();
printf("Hello World!");
}
Answer:
prints Hello world Hello world
All the statements after the call to fork() will be
executed twice
All the statements after the call to fork() will be
executed twice
Previous Question | Next Question |
What are the system calls used for process management? | Please Explain fork() system call? |