How Garbage Collector identifies the objects which are not
in use?
Answer Posted / rahul veer
Garbage Collector determines which objects are no longer
being used by examining the application's roots. In Dot Net
each and every application has a set of roots. Each root
either refers to an object on the managed heap or is set to
null. An application's roots include global and static
object pointers, local variables and reference object
parameters on a thread's stack, and CPU registers. The
garbage collector has access to the list of active roots
that the just-in-time (JIT) compiler and the runtime
maintain. Using this list, it examines an application's
roots, and in the process creates a graph that contains all
the objects that are reachable from the roots. Objects that
are not in the graph are unreachable from the application's
roots. The garbage collector considers unreachable objects
as garbage and not in use.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What symbol would you use to denote, the start of a code block in razor views?
Describe the .net framework architecture.
Mention some action filters which are used regularly in ASP.Net MVC?
What is entitytypes? : Entity framework
What is conceptual model? : Entity framework
List out few different return types of a controller action method?
How to enable Attribute Routing?
What is meant by tempdata in mvc?
Explain JSON Binding?
how do you mark a property as required? For example, for a project, the name is a required field.
What is the difference between tempdata and viewbag?
how can you enhance the performance of entity framework?
What is Separation of Concerns in ASP.NET ASP.Net MVC?
What is the "helperpage.isajax" property?
How large is the .net framework 3.0? Does this change make the release larger?