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
Describe Recovery from Deadlock?
What are the major differences between Thread and Process?
What is asynchronous task?
Explain about Different types of real-time scheduling?
What are the three main purposes of an operating system?
What are differences between ram and rom?
What are the different ways in which data can be represented?
How do I get the ie tab in chrome?
Hi All, Can any one post a MS-DOS command/ utility tool, that modifies large size(nGBs) log file into MBs form the begining of log file? I will appreciate if any one give correct answer to this question. Thanks
What is ram parity?
How do you sleep in python?
What is so-dimm in reference to ram?
What is semaphore and its function?
What is resource allocation graph?
What is throughput?