What is fork()?
Submitted by: AdministratorFork 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Unix IPC Job Interview Questions And Answers
Top Unix IPC Questions
☺ | What is Daemon? |
☺ | Explain a zombie? |
☺ | What are the system calls used for process management: |
☺ | How to write the program on full-duplex communication on bidirectional(e.g using two pipes)? |
☺ | What is an advantage of executing a process in background? |
Top OS Unix Categories
☺ | Unix IPC Interview Questions. |
☺ | Unix General Interview Questions. |
☺ | Unix System Calls Interview Questions. |
☺ | Unix Threads Interview Questions. |