Answer Posted / msalve
Fork system call is used to create a new process. Fork is
called onces and returns twice.It will return 0 to the newly
created process (child process) and process id of child to
the calling process(parent process).
The child process gets copy of parents data, stack and heap
segement.The code segement is common for both.Both the
processes will resume execution from the command next to
fork.Scheduler decide which process to run first.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the full form of ipc?
Max relax-able permission value with out giving write permission to others?
Explain the advantage of executing a process in background?
What are the various schemes available?
Explain linking across directories?
Explain a zombie?
What is ln(linking)?
Please explain fork() system call?
What is the condition required for dead lock in unix system?
How to write the program on full-duplex communication on bidirectional?
Explain what is the process id for kernel process?
Please describe the initial process sequence while the system boots up?
What is the very first process created by kernel?
Explain how do you execute one program from within another?
Explain the system calls used for process management?