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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 7 c's of communication?

532


How do I delete an operating system?

565


Can ram cause blue screen?

542


What is a monitor?

715


Can you tell me the difference between semaphore and mutex.

614






Explain the command rate in reference to ram?

560


When an input file is opened, what are the possible errors that may occur?

561


What is rufus usb tool?

531


Explain the concept of the multi-processor systems or parallel systems?

536


How do I use i3?

576


What is rdram?

577


What are dynamic loading, dynamic linking and overlays?

579


What grep means?

494


How i can repair File Allocation Table?

600


Explain the difference between logical & physical address.

604