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
will there be any issues adding a table without primary keys to a data model?
What is the .net framework and how does it work?
How does the 'page lifecycle' of asp.net mvc works?
What is viewdata?
What is managed extensibility framework?
Can I use razor code in javascript in asp.net mvc?
What are authentication filters in web api?
What are ajax helpers in asp.net mvc?
What is disconnected scenario? : Entity framework
What is representational state transfer (rest) mean?
What filters are executed in the end?
What is clr? How does work clr & wht is work of clr?
What is entitytypes? : Entity framework
Is http stateful or stateless?
explain what does .edmx file contains?