When Garbage Collector will run and how its identifing
whether the Object is used or Not.?

Answer Posted / sivaprasad

I think Garbage Collector is a normal priority thread
running in the application under normal conditions, when
heap memory is full it takes high priority and traces
referrance tree and mark the objects which have referrance
count is zero.usually when object is out of scope it memory
in heap automatically reclaimed by Garbage Collector(if it
has no referrances)

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you handle exceptions in asp.net?

556


Where web.config file is used?

563


How can you handle unmanaged code exceptions in asp.net?

545


What is web router?

495


What are the security types in asp.net?

572






Is it possible to create web application with both webforms and mvc?

524


What is the part of url?

528


What is the mvc framework?

556


What is query string? What are its advantages and limitations?

506


Explain how can you debug your .net application?

525


What is the main difference between Asp.net and Vb.net?

560


Explain exception handling in .net.

602


What is the use of response redirect in asp.net?

568


Why is string called immutable data type?

582


Which is faster viewdata or viewbag?

532