Predict the output of the following program code
main()
{
fork();
printf("Hello World!");
}
Answers were Sorted based on User's Feedback
Answer / shilpa
prints Hello world Hello world
All the statements after the call to fork() will be
executed twice
| Is This Answer Correct ? | 13 Yes | 3 No |
What is an advantage of executing a process in background?
How can a parent and child process communicate?
Explain the system calls used for process management?
Which ipc is the fastest in unix?
Explain about daemon?
What are various IDs associated with a process?
Explain what are the system calls used for process management?
What is a Daemon?
How to write the program on full-duplex communication using 2 FIFOs
Explain what is the process id for kernel process?
How to know whether the message queue is empty or not.
How to get or set an environment variable from a program?