What are the fundamental differences between garbage collection in C# and Java?

前端 未结 3 530
独厮守ぢ
独厮守ぢ 2021-02-05 02:11

I had some very wrong sounding advice recently from a \"senior\" developer/coworker regarding the C# garbage collector such as...

  • \"You need to use destructors

3条回答
  •  广开言路
    2021-02-05 03:00

    I'm afraid your coworker is incorrect, but don't take my word for it. Lets have a link fest!

    Here are some good articles on GC: http://msdn.microsoft.com/en-us/magazine/bb985010.aspx http://msdn.microsoft.com/en-us/magazine/bb985011.aspx

    Also, Maoni's WebLog has some great stuff (will bring you up to date as well, since the articles above are quite old): http://blogs.msdn.com/b/maoni/

    Also, just this week, Raymond Chen is doing a series on GC: http://blogs.msdn.com/b/oldnewthing/archive/2010/08/13/10049634.aspx

    Here's a good discussion on using Dispose and Finalization: http://www.bluebytesoftware.com/blog/2005/04/08/DGUpdateDisposeFinalizationAndResourceManagement.aspx

提交回复
热议问题