heap allocation & kill signal - Aix

This is a discussion on heap allocation & kill signal - Aix ; How does the OS (*nix) keeps track of the heap memory allocated to each process? If the OS knows the memory consumed by each process, does it automatically releases the memory upon process termination/kill? if not, why not ? Also, ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: heap allocation & kill signal

  1. heap allocation & kill signal

    How does the OS (*nix) keeps track of the heap memory allocated to each
    process? If the OS knows the memory consumed by each process, does it
    automatically releases the memory upon process termination/kill? if
    not, why not ?

    Also, what happens when user gives KILL signal to a process? Is the
    memory consumed by the process is leaked? What clean up the OS does in
    such case?

    TIA.

    ~ gau


  2. Re: heap allocation & kill signal

    gaurish.panse@gmail.com wrote:
    > How does the OS (*nix) keeps track of the heap memory allocated to each
    > process? If the OS knows the memory consumed by each process, does it
    > automatically releases the memory upon process termination/kill? if
    > not, why not ?


    Relax. Unlike win16, in unix all allocated resources of a terminated
    process are released by the kernel.

+ Reply to Thread