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

which is the new version of IIS SERVER

1 Answers  


What is cookie less session? How it works?

2 Answers   TCS,


Dategrid filtering and sorting How can we sort all the fields at once?

3 Answers   Satyam,


when the threads are used in dot net.

2 Answers  


main difference between asp.net2.0,asp.net1.1,asp.net1.0

1 Answers   Northgate is,






Explain the functionality of "EnableViewState" ? What happens if you want it on or off?

1 Answers   Siebel,


How do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


How do you handle session management in ASP.NET and How do you implement them. How do you handle in case of SQLServer mode?

1 Answers   DELL, Microsoft,


What is a server cookie?

0 Answers  


What is the Difference between MVC And MVP design pattrens

0 Answers   Symphony,


what is uncle aunty file

1 Answers  


What is boxing?

8 Answers   IBM, Misys, Siebel Systems,


Categories