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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / naresh

Garbage Collector identifies a unused object using "referce
counting" reference countiing: how many times the object is
used if the count is zero..its is unuesd....now the gc will
release the resources..

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

What’s the difference between asp.net web forms and asp.net mvc?

0 Answers  


What is the relationship between IIS and ASP.NET in the generation of dynamic Web sites?

1 Answers  


What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?

10 Answers   Microsystems,


What is difference between session and cookies?

0 Answers  


Whats the difference between abstract factory pattern and factory pattern?

0 Answers  






What is a Managed Data?

4 Answers   HCL,


How many types of Cookies are available in ASP.NET?

0 Answers   MindCracker,


About Garbage Collector?

3 Answers   Microsoft,


What is a url string?

0 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


When was asp.net released?

0 Answers  


Where on the Internet would you look for Web services?

5 Answers   IBM, MNC, Siebel Systems,


Categories