write About fork()?

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


Please Help Members By Posting Answers For Below Questions

Which ipc is the fastest in unix?

546


Max relax-able permission value with out giving write permission to others?

570


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

586


What is i-node numbers?

600


What is fork()?

599






Please explain fork() system call?

559


Please describe the initial process sequence while the system boots up?

575


Explain the system calls used for process management?

544


Explain about daemon?

568


What is daemon?

534


Explain the initial process sequence while the system boots up?

550


Explain what is the process id for kernel process?

578


Explain what are the system calls used for process management?

514


What is ipc in unix?

563


What is ipc port?

572