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

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


Please Help Members By Posting Answers For Below Questions

What is shadow ram?

1088


What are the operating system components?

1082


How do I go to root?

989


what's the latest ram lunch?

2648


What is the difference between tty and pts?

1005


What is a critical section?

1151


What is belady's anomaly?

969


Describe horizontal scalability and vertical scalability.

1078


What are the 3 categories of operating systems?

1030


Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?

1060


What is starvation os?

1026


How do I see all files on my mac?

1069


How much ram can a 64 bit os use?

918


How do I find the path of a shared folder?

1059


Explain the concept of deadlocks? Why they are used?

1095