Friday, August 22, 2008

Garbage Colletor

                                       Garbage collector

       Garbage collector is responsible to provide Automatic Memory Management.
Garbage collector has its own Engine known as optimize engine. This optimizing engine will run in the regular interval period of time, by using pre-designed algorithms. Optimizing engine categorized the objects like used objects & idled objects. Used objects are kept in the memory as usual and idled objects are destroyed from the memory.
                                   Working Nature of GC

         Internally optimizing engine will maintain three Generations. Generation 0, 1& 2.
GC engine/optimizing engine places the newly created object in generation 0 only.When generation 0 is completely filled, then it creates generation 1 and mostly idled objects from generation 0 are transferred into generation 1. When generation 1 is Completely filled, then it creates generation 2 and mostly idled objects from generation 1 are transferred into generation 2. When generation 2 is completely filled, mostly idled objects from generation 2 is destroyed.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Glitter Words
[Glitterfy.com - *Glitter Words*]
free counters