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

What is NonActionAttribute ?

0 Answers   Cognizant,


I am confusing about reflection.can any one tell about REFLECTION with example?

1 Answers   TCS,


what do you mean by table-per-hierarchy?

0 Answers   Microsoft,


What is renderbody?

0 Answers  


reading doc file in textbox using .net2005 with c#

3 Answers  






What is the difference b/w constant & read only variable?

4 Answers   IMI Soft Engineering,


What are the Main Features of .NET platform

1 Answers  


What is layout in mvc?

0 Answers  


What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?

1 Answers  


What is route config?

0 Answers  


what is way of loading data in ef (entity framework)?

0 Answers   Microsoft,


Why is entity framework used?

0 Answers  


Categories