Unix Programming - Re: what happen to heap on programme exit

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2005 > Re: what happen to heap on programme exit





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: what happen to heap on programme exit
Barry Margolin

2005-12-19, 2:49 am

In article <1134962572.006304.172180@g49g2000cwa.googlegroups.com>,
"apple.davinci" <apple.davinci@gmail.com> wrote:

> thanks very much. the most I agree with you.
> could you tell more detail on how the OS reclaim memory.


A process is basically a collection of virtual memory and register
settings. When the process goes away, the virtual memory is no longer
needed, so it gets reclaimed. There are some exceptions for shared
memory (since it may still be in use by other processes), but all the
private virtual memory goes away.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com