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 ?    11 Yes 3 No






Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function that responds to a click anywhere on the page by displaying an alert dialog. Display the event name if the user held Shift during the mouse click. Display the element name that triggered the event if the user held Ctrl during the mouse click.

839


Measurements of a certain system have shown that the average process runs for a time T before blocking on I/O. A process switch requires a time S, which is effectively wasted (overhead). The CPU’s efficiency is the fraction of its time its spends executing user programs, i.e., executing user processes. For round robin scheduling with quantum Q, give a formula for the CPU efficiency for each of the following: (a) Q = ∞ (b) Q > S + T (c) S

2635


How do an incremental process model and certification work together to produce high quality software? In your own words, describe the intent of certification in the clean room software engineering context.

725


Hello this is gaurav garg I have completed BCA. plz TEll me how will ask question in interview.

1110


How to take backup using active directory recyclebin concept

1174






Give a brief description of the following terms: a) Play head b) Symbol c) Tweening d) ActionScript e) Frame rate f) Library panel g) Masking h) Context – sensitive Property Inspector i) Bandwidth Profiler j) Frame Label

809


what is the command to copy windows files (i386) without formatting OS?

1091


What is the important aspect of a real-time system?

2208


what is difference between xp & 2003?

853


While running DOS on a PC, which command would be used to duplicate the entire diskette?

2884


what are the softwares helping for auditing poblems?

925


please prodide me nvidi placement papers

1290


Explain what is meant by repetition of information and inability to represent information. Explain why each of these properties may indicate a bad relational database design.

1750


When would you choose bottom-up methodology?

1517


Explain paging, faulting, and deadlock?

3