If we want to construct our own Garbage collector what are
the steps things we have to do?

Answers were Sorted based on User's Feedback



If we want to construct our own Garbage collector what are the steps things we have to do?..

Answer / amit kumar sharma

//Use this
System.GC.Collect();
System.GC.WaitForPendingFinalizers();

Is This Answer Correct ?    8 Yes 0 No

If we want to construct our own Garbage collector what are the steps things we have to do?..

Answer / suresh mediboyina

If we want to call the Garbage collector,use this command


system.gc.collect()

Is This Answer Correct ?    1 Yes 0 No

If we want to construct our own Garbage collector what are the steps things we have to do?..

Answer / venu

Hi,

If you want to implement your own GC, you need to define
you own memory cleaning by implementing destructors.

Also you have configure your GC in a separate long running
thread which should be of Daemon Thread. (Background
thread).

Venu.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Dot Net Framework Interview Questions

Can we access the web controls in a page pre initialising event?

2 Answers  


What is entity framework in asp net?

0 Answers  


I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...

2 Answers  


what is entityclient?

0 Answers   Microsoft,


Mention two instances where routing is not implemented or required?

0 Answers   Infosys,






What is side by side Execution ?

3 Answers   MEC, MMTS,


How to enable Attribute Routing?

0 Answers  


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

0 Answers  


What are scaffold templates in mvc?

0 Answers  


Is the lack of deterministic destruction in .NET a problem

1 Answers  


Describe the advantages of writing a managed code application instead of unmanaged one. What's involved in certain piece of code being managed ?

1 Answers  


What is filters in web api?

0 Answers  


Categories