O'Reilly logo

Under the Hood of .NET Memory Management by Chris Farrell, Nick Harrison

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7: The Windows Memory Model

In Chapter 3, we touched on how the .NET CLR interfaces with the Windows OS during heap management. Well, seeing as this is the last chapter and you've come this far, I was hoping maybe you would be willing to go a little bit deeper into the OS.

To really understand memory management, you need to follow what actually happens after the .NET CLR makes memory requests to the OS as part of creating and destroying the generational segments.

As always, let's start with the basics and build from there, “assuming nothing.” Of course, you can always skip the first few sections if you find them too basic.

.NET/OS Interaction

The .NET CLR interfaces with the OS using the Windows API. To control heap management, it creates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required