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

Difference between short term, long term and medium term scheduler.

1239


Who does the memory management in operating system?

1021


Should I install 32 bit or 64 bit?

1009


How many gb of ram can 64 bit use?

1031


How to take backup using active directory recyclebin concept

2260


Tell me operating systems used in mobile.

1025


What is an operating system on a computer?

1049


Explain about local and global page replacements?

1005


What is a safe state and its’ use in deadlock avoidance?

1114


What is sock_seqpacket?

1131


How do I stop blue screen?

998


What are real-time systems?

1070


How do I find the path of a shared folder?

1078


What are short-term, long-term and medium-term scheduling?

1076


What is the trtw/trwt timing?

1193