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 ?    43 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 ?    12 Yes 3 No

Post New Answer

More Operating Systems General Concepts Interview Questions

Is internet explorer still supported?

0 Answers  


What do you mean by deadlock?

2 Answers  


Thread means?

5 Answers   BFL,


How does Windows NT supports Multitasking?

1 Answers  


Explain the command rate in reference to ram?

0 Answers  






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

1 Answers  


Enumerate the different RAID levels.

0 Answers  


Explain page fault interrupt?

0 Answers  


What are the stipulations of C2 level security?

1 Answers  


How can a vfs layer allow multiple file systems support?

0 Answers  


Differentiate between RAM and ROM?

25 Answers   CTS, Doli Systems, HK, IBM, Infosys, Wipro,


Difference between NTFS and FAT32?

0 Answers  


Categories