On Sat, 12 Nov 2005 10:40:24 -0000, "Chris Uppal"
<chris.uppal@metagnostic.REMOVE-THIS.org> wrote, quoted or indirectly
quoted someone who said :
>http://groups.google.com/group/comp.lang.java.programmer/msg/7889879d8cbb089f
>
>This you /aren't/ looking for a simple answer, then Chris Smith has already
>covered the bases.
ut in Java, we have a Garbage Collector. This is a little dude in
overalls that climbs down a special Staff Only Thread, sweeps up all
the broken Objects on the floor, and shovels them into the
incinerator. You never know exactly when he's going to come along,
but he's always there keeping an eye on the mess on the floor to make
sure that it doesn't fill up too much...
The problem is the objects DON'T naturally fall to the floor. GC is
about tracing the root to the branches to see what is still alive.
Perhaps a copy collector would be easier to understand, copying only
the objects still properly attached to a new room, shaking off the
dead wood, then turning on a blast furnace in the old one to vaporise
anything in it.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.