Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



when a process is created using fork(). what is shared between parent process and child process. ..

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
child process.

Is This Answer Correct ?    43 Yes 5 No

when a process is created using fork(). what is shared between parent process and child process. ..

Answer / 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

More Operating Systems General Concepts Interview Questions

What is sdram?

0 Answers  


Explain condition variable.

0 Answers  


Explain Belady's Anomaly?

6 Answers   TCS,


Explain cycle stealing?

0 Answers  


What is the concept of reentrancy?

0 Answers  


When would you choose bottom-up methodology?

0 Answers  


How do I know if I have a 64 bit processor?

0 Answers  


What is a binary semaphore? What is its use?

7 Answers   CDC, Maveric, Morgan Stanley,


What are residence monitors?

0 Answers  


An Infosys Question : I + Opposite of, W + Initial of, Ice + twice of the letter b4T + 3/4 of X + 15th letter + 1/2 of 0. Please find the answer & mail me

21 Answers   HCL, Infosys, Instagram, Nokia, Oracle, Sun Business Solutions,


How does disk operating system work?

0 Answers  


Can you list the coffman's conditions that lead to a deadlock?

0 Answers  


Categories