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 is the difference between web config and machine config files?

0 Answers  


What is ViewState and How it is managed,Its Advantages/Benefits?

4 Answers   Google,


What property is used on the datatable to indicate a conflict after an update? a) HasConflict b) HasError c) HasCollision d) HasDataError

1 Answers   Syntax Softtech,


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

0 Answers  


Why asp.net is used?

0 Answers  






What is the exact purpose of http handlers?

0 Answers  


Do I need to have the latest version of windows media player installed?

0 Answers  


Mention few asp.net validators.

0 Answers  


where the stored procedure are written in business logic or data acess layer?

2 Answers  


what is difference between .net 3.0 and 3.5

3 Answers  


Why is catch(Exception) almost always a bad idea?

4 Answers  


what are the differences between windows services and web services?

5 Answers   Tech Mahindra,


Categories