when a process is created using fork(). what is shared
between parent process and child process.
1.Heap 2. stack 3. shared memory segments 4. I/O handles

Answers were Sorted based on User's Feedback



when a process is created using fork(). what is shared between parent process and child process. ..

Answer / sushil kumar

(3)shared memory segments
reason:-When a fork() system call is issued, a copy of all
the pages corresponding to the parent process is created,
loaded into a separate memory location by the OS for the
child process.

Is This Answer Correct ?    41 Yes 5 No

when a process is created using fork(). what is shared between parent process and child process. ..

Answer / pradeep

this is correct but partially. there is something called COW(copy on write). stack is not copied until one of them(parent or child) tries to write into it. if the child immediately calls exec then there is not need to copy the stack at all. As practically in most of the cases child process does an exec call, this unnecessary copy of huge stack is avoided by delaying it till its written into.

Is This Answer Correct ?    11 Yes 3 No

Post New Answer

More Operating Systems General Concepts Interview Questions

What is the difference between microprocessor and microcontroller?

64 Answers   National Instruments, Samsung, Infosys, HCL, IBM, Alcatel, 4Cplus,


Ms dos provide no means of concurrent processing.three complication that concurrent processing adds to an operating system? ?

1 Answers  


What is the best way of communication in multi process environment? ex: getting log from different applications from multi servers?

1 Answers   HP,


What are the different types of scheduling algorithms?

0 Answers  


An Infosys Question : I + Opposite of, W + Initial of, Ice + twice of the letter b4T + 3/4 of X + 15th letter + 1/2 of 0. Please find the answer & mail me

21 Answers   Nokia, Oracle, HCL, Infosys, Sun Business Solutions, Instagram,






Name the functions constituting the os's memory management.

0 Answers  


1)application programs interact with operating system through system call.is there any method of interaction between the two? 2) Inconveniences faced by user interacting with a computer systemwithout a operating system? 3) what are the requirements for virtual memory architecture

2 Answers   KCPL,


What is cache memory?

1 Answers  


How can two processes communicate with one another?

0 Answers  


What is busy waiting?

3 Answers  


What is the cause of thrashing?

0 Answers  


What is deadlock? Explain.

0 Answers  






Categories