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
Give an example of a Process State.
What are the primary functions of VFS?
State the main difference between logical from physical address space.
Which is better internet explorer or edge?
How many types of fragmentation occur in operating system?
What is the kernel of the operating system?
How does a ram function?
Does dual boot affect performance?
What is synchronization? What are the different synchronization mechanisms?
What is GUI?
What is a monitor?
What is LiveLock?
What are the different types of kernel?
What is a phase change memory?
What are the five types of operating system?