Qus:    What are the divisions of the Memory Heap?
Oct 13, 2020 13:52 DotNet 2 Answers Views: 1425 ANANYA
Prev Next
Answers (2)
ARUNA Oct 14, 2020 07:03
Answer:   The memory heap is divided into three generations.
Generation 0 – Used to store short-lived objects. Frequent Garbage Collection happens in this Generation.
Generation 1 – Used for medium-lived objects.
Generation 2 – Used for long-lived objects.

PARTH Oct 14, 2020 14:13
Answer:   By default, when the .NET application is started and virtual address space is allocated for the process the following data structures, represented as heaps, are created:

Code Heap – storing JIT-compiled native code
Small Object Heap (SOH) – storing objects of size less than 85 kilobytes
Large Object Heap (LOH) – storing objects of size greater than 85 kilobytes
Process Heap.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect