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
How we can register the Area in ASP.Net MVC?
What is Layout in ASP.Net MVC?
Explain the new features 3.5 framework against with the tool?
explain what does .edmx file contains?
Explain how to use multiple submit buttons in ASP.Net MVC?
What is entity framework firstordefault?
What is mvc entity framework?
Can you explain renderbody and renderpage in mvc?
What is entity framework in asp net?
Does windows 10 need .net framework?
What is the difference between adding routes, to a webforms application and to an mvc application?
Explain representational state transfer (rest) in detail?
What are action filters?
The order of the filters that get executed, if the multiple filters are implemented?
Explain Keep method in Tempdata in ASP.Net MVC?