Hi
What is the diffrence between GAC and GC?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Smart LuckyPosted Jan 4, 2012, 3:20 AM
Deepak DwijPosted Nov 16, 2011, 7:01 PM
GAC- Global assembly cache is the database/repository for .Net framework.
GC - Garbage collector GC can do better object release than we can.
How GC will handle above situations?
If program ends GC automatically reclaims all the memory occupied by the objects in the program.
GC keeps tracks of all the objects and ensures that each object gets destroyed once.
GC ensures that objects, which are being referenced, are not destroyed.
GC destroys the objects only when necessary. Some situations of necessity are memory is exhausted or user explicitly calls System.GC.Collect() method.
AartiPosted Nov 15, 2011, 11:45 PM
Kunal NaikPosted Nov 15, 2011, 10:57 PM
In the common language runtime is installed has a machine-wide code cache called the Global Assembly Cache(GAC). This Global Assembly Cache stores .NET assemblies specifically designated to be shared by several applications on that computer.
While Garbage collection (GC), also known as automatic memory management, is the automatic recycling of dynamically allocated memory. Garbage collection is performed by a garbage collector which recycles memory that it can prove will never be used again. Systems and languages which use garbage collection can be described as garbage-collected.
VulpesPosted Nov 15, 2011, 6:35 PM