VB.NET - Garbage collection

Define Garbage collector in .NET.

- GC is automatic memory reclamation.
- It is low-priority thread that always runs in the background of the application.
- When memory is scarce, the priority of the garbage collector is elevated until sufficient resources are reclaimed.
- It is not certain when an object will be garbage collected.

Define garbage collection.

GC is a low priority thread that runs in the background of the .Net application. It helps in destroying the objects from the memory that are no longer in used.

Is it possible to force garbage collector to run?

Yes, we can force garbage collector to run using -
System.GC.Collect()
VB.NET - Define Assembly in .NET
Define Assembly in .NET - An assembly that can be shared by multiple applications. To make an assembly a shared assembly.......
VB.NET - Describe user interface design in .Net
Describe user interface design in .Net - Major elements of a user interface include forms, controls, and menus......
VB.NET - Define form.
Define form in VB.NET - Forms are the primary unit of the user interface........
Post your comment