内存管理如何在.net中运行 [英] how does memory management works in .net

查看:92
本文介绍了内存管理如何在.net中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想详细了解内存管理在.net框架中的实际运作方式?当我们创建一个不必要的对象而不使用它时会发生什么。它会占用内存还是GC会将其删除?其实我想在.net中研究内存管理的基础知识,比如分配内存,释放内存..谢谢你。

解决方案





请参阅以下链接:



查找内存泄漏并优化.NET应用程序中的内存使用情况 [ ^ ]



内存管理:示例 [ ^ ]



3.9自动内存管理 [ ^ ]



释放变量占用的内存 [ ^ ]





谢谢


为什么不从这个链接开始?

垃圾收集:Microsoft .NET Framework中的自动内存管理 [ ^ ]



然后尝试阅读

1)点网内存管理基础知识。 [ ^ ]

2) .NET中的内存管理 [ ^ ]

3)内存管理误解 [ ^ ]



希望这会有所帮助:)


请参阅以下链接。其中以示例解释了所有内容:



内存管理误解 [ ^ ]

i want to know in detail how memory management actually works in .net framework ? What happen when we create a unnecessary object and don't use it . does it occupy memory or does GC removes it? Actually i want to study the fundamentals of memory management in .net like allocating memory,releasing memory .. Thank u.

解决方案

Hi,

Refer the following links:

Find memory leaks and optimize memory usage in your .NET application[^]

Memory Management: Examples[^]

3.9 Automatic memory management[^]

Releasing Memory taken by variables[^]


Thanks


Why don't you start from this link?
Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework[^]

Then try reading
1) Dot net memory management basics.[^]
2) Memory Management in .NET[^]
3) Memory Management Misconceptions[^]

Hope this helps :)


Refer below link. Which explains everything with example :

Memory Management Misconceptions[^]


这篇关于内存管理如何在.net中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆