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
Difference between short term, long term and medium term scheduler.
Who does the memory management in operating system?
Should I install 32 bit or 64 bit?
How many gb of ram can 64 bit use?
How to take backup using active directory recyclebin concept
Tell me operating systems used in mobile.
What is an operating system on a computer?
Explain about local and global page replacements?
What is a safe state and its’ use in deadlock avoidance?
What is sock_seqpacket?
How do I stop blue screen?
What are real-time systems?
How do I find the path of a shared folder?
What are short-term, long-term and medium-term scheduling?
What is the trtw/trwt timing?