Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can we call the garbage collector to run explicicitly?

Answer Posted / prateek

But forcefully calling Garbage collector reduces the
performance. As when CLR runs Garbage collector
automatically it checks all the objects which are not used
for a long time and remove them. But if we use
System.GC.Collect(), it will shift the particular object to
cache. When CLR founds no object which is made to be free
then it will check the cache memory from there it will
remove that very object. So, how it is reducing the performance.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by navigation property?

1058


What is definingquery in entity framework? : Entity framework

994


What are scaffold templates in mvc?

1019


How we can handle the exception at controller level in ASP.Net MVC?

1113


what is lazy loading in entity framework?

1105


What is object service? : Entity framework

1181


what is split entity?

1066


Explain dependency resolution?

1086


Explain peek method in tempdata in asp.net mvc?

1126


Explain what languages does the .net framework support?

984


What are the 2 ways of adding constraints to a route?

1013


How does servicing work for the .net framework 3.0?

949


how do you truncate a table using entity data model?

1187


What is Area in ASP.Net MVC?

1105


In Server how to check whether model has error or not in ASP.Net MVC

1135