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 is shadow ram?
What are the operating system components?
How do I go to root?
what's the latest ram lunch?
What is the difference between tty and pts?
What is a critical section?
What is belady's anomaly?
Describe horizontal scalability and vertical scalability.
What are the 3 categories of operating systems?
Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?
What is starvation os?
How do I see all files on my mac?
How much ram can a 64 bit os use?
How do I find the path of a shared folder?
Explain the concept of deadlocks? Why they are used?