Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 5 - Part 3
Date: Wed Nov 21 2001 10:35 am
Author: Lee, Peter <petel@cmu.edu>
Subject: Re: garbage collection

Yes, the garbage collector is invoked automatically.

Actually, it doesn't quite wait for memory to run out. Instead, it tries to wait until the total ratio of "live" data to garbage is very small. This often happens when memory is almost full, but it also can happen early on in a program's execution, when very little memory is in use.

If you have an interest in this sort of thing, there are some upper-level CS courses that spend a bit of time on this, such as 15-312 and 15-411...
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
garbage collection      Cipriani, Jason A.      Tue Nov 20 2001 2:21 am       
Re: garbage collection      Lee, Peter      Tue Nov 20 2001 3:41 pm       
Re: garbage collection      Cipriani, Jason A.      Tue Nov 20 2001 3:58 pm       
Re: garbage collection      Lee, Peter      Wed Nov 21 2001 10:33 am       
Re: garbage collection      Scherer, Sebastian      Tue Nov 20 2001 4:24 pm       
Re: garbage collection      Lee, Peter      Wed Nov 21 2001 10:35 am       

Back to previous screen