One nice reference i can suggest for Garbage collection is present
here.
http://www.simple-talk.com/dotnet/.net-framework/understanding-garbage-collection-in-.net/

Though, it is in .Net, but you will understand one of the possible
approaches taken by Garbage Collectors.

On Aug 1, 1:41 pm, coder dumca <[email protected]> wrote:
> @ vaibhav   when we  are sure that we  dont need a particular object we can
> call gc
>
> On Mon, Aug 1, 2011 at 1:46 AM, Deepthi Srinivasan <[email protected]>wrote:
>
>
>
>
>
>
>
> > Garbage collector'll never run according to our whims and fancies :P It'll
> > run only when it wants (mostly when it senses that memory is going down). We
> > can issue a request using system.gc but we cannot MAKE it run...
>
> > On Sun, Jul 31, 2011 at 11:56 PM, vaibhav shukla 
> > <[email protected]>wrote:
>
> >> @mr coder : y do we need to call garbage collector explicitly when it
> >> works automatically ?
>
> >> On Sun, Jul 31, 2011 at 11:07 PM, coder dumca <[email protected]>wrote:
>
> >>> generally jvm runs on following occasions
>
> >>> 1: periodicaliy
> >>> 2: when program is about to run out of memory the  JVM runs  and
> >>> finallize the objects.
> >>> 3: when we call using System.gc  or Runtime.getruntime.gc
>
> >>> pls correct me if i m wrong
>
> >>> On Sat, Jul 30, 2011 at 11:10 AM, vaibhav shukla <
> >>> [email protected]> wrote:
>
> >>>> please give a glimps of how garbage collection is done in java.
> >>>> how *System.gc()*  works ?
>
> >>>> --
> >>>>   best wishes!!
> >>>>     Vaibhav
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Algorithm Geeks" group.
> >>>> To post to this group, send email to [email protected].
> >>>> To unsubscribe from this group, send email to
> >>>> [email protected].
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/algogeeks?hl=en.
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Algorithm Geeks" group.
> >>> To post to this group, send email to [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected].
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/algogeeks?hl=en.
>
> >> --
> >>   best wishes!!
> >>     Vaibhav
> >>       MCA
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Algorithm Geeks" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >>http://groups.google.com/group/algogeeks?hl=en.
>
> > --
> > Regards,
> > Deepthi
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to