126 questions for “Memory & Garbage Collection”

Found in 1 field. Select a question to see its full answer.

Information Technology

126 questions in 7 technologies

#QuestionTechnologyTopicLevel
1How would you use a memory profiler (or dotnet-counters / dotnet-gcdump) to diagnose excessive garbage collection pressure in a production .NET application? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionAdvanced
2How does garbage collection in .NET work, and what three phases does a collection cycle go through? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionBeginner
3How would you use ArrayPool<T> to reduce garbage collection pressure in a high-throughput, buffer-allocating hot path? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionAdvanced
4How does garbage collection work in .NET? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionBeginner
5What are .NET's garbage collection 'generations,' and what's the core assumption behind this design? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionBeginner
6What is a memory leak in a garbage-collected language like C#, given that the GC handles cleanup automatically? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionIntermediate
7What is the difference between the stack and the heap in .NET memory management? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionBeginner
8How does the IDisposable pattern and the 'using' statement help manage UNMANAGED resources that the garbage collector doesn't automatically clean up? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionIntermediate
9What causes managed memory leaks despite the GC? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionAdvanced
10What is a memory leak in JavaScript, given that it has automatic garbage collection? JavaScript › Memory Management & Garbage CollectionJavaScriptMemory Management & Garbage CollectionBeginner