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
Answers were Sorted based on User's Feedback
Answer / sushil kumar
(3)shared memory segments
reason:-When a fork() system call is issued, a copy of all
the pages corresponding to the parent process is created,
loaded into a separate memory location by the OS for the
|Is This Answer Correct ?||41 Yes||5 No|
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|
What is the highest priority software interrupt?
What are the possible threads a thread can have?
what is the difference b/w window 2000 server and window 2003 server ?
What is Semaphore?
To ensure one program doesnt corrupt other program in a Multi program enviornment what you should do?
What are turnaround time and response time?
what is difference between xp & 2003?
What are the different process states?
What are the different tasks of Lexical analysis?
Give a brief discussion on schedulers & Dispatchers with respect to process management.
What is cache memory?