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
What are the 7 c's of communication?
How do I delete an operating system?
Can ram cause blue screen?
What is a monitor?
Can you tell me the difference between semaphore and mutex.
Explain the command rate in reference to ram?
When an input file is opened, what are the possible errors that may occur?
What is rufus usb tool?
Explain the concept of the multi-processor systems or parallel systems?
How do I use i3?
What is rdram?
What are dynamic loading, dynamic linking and overlays?
What grep means?
How i can repair File Allocation Table?
Explain the difference between logical & physical address.