01-23-07 12:31 PM
gaurish.panse@gmail.com writes:
> 1. 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 ?
>
> 2. What happens when SIGKILL is issued on a process? What clean up the
> OS does?
Quite interesting questions. You'll learn a great deal answering them...
You can either read some books, there are very good unix books,
or read the sources of some unix kernel. You've got the choice between
a number of them, ranging from linux, freebsd and other *bsd, minix,
mach, etc. I assume you're able to find these sources on the web...
--
__Pascal Bourguignon__ http://www.informatimago.com/
"By filing this bug report you have challenged the honor of my
family. Prepare to die!"
[ Post a follow-up to this message ]
|