in reply to Memory and garbage collection
The four points you listed are correct.
When a process dies or exists, all its memory is freed. The same holds true for perl programs, because on the operating system level they are just ordinary programs.
The term "memory leak" refers to the fact that a long running program can use more and more memory, without actually storing more information. This happens when memory is not freed, but the program has no references to that piece of memory.
What happens if it is interrupted?
What do you mean by "interrupted"? The scheduler of a multi tasking operation system interrupts your program many times each second, and resumes it afterwards. But it abstracts that away, the process doesn't "feel" that it has been interrupted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory and garbage collection
by Anonymous Monk on Jul 30, 2008 at 13:24 UTC | |
by moritz (Cardinal) on Jul 30, 2008 at 13:30 UTC | |
by jethro (Monsignor) on Jul 30, 2008 at 13:45 UTC |