#4 Garbage Collection Process | Garbage Collector | Dot net framework | Hindi

  Рет қаралды 18,935

CSE Simplified (Sagu Amit)

CSE Simplified (Sagu Amit)

Күн бұрын

Download PPT:
t.me/cssimplif...
Garbage collection is a fundamental aspect of memory management in the .NET Framework. It is an automatic process that relieves developers from the burden of manual memory allocation and deallocation, allowing them to focus on application logic rather than memory management details.
In the .NET Framework, the garbage collector (GC) is responsible for reclaiming memory that is no longer in use by the application. It tracks and manages objects allocated on the managed heap, which is a dedicated portion of memory allocated by the runtime for storing objects.
The garbage collector uses a generational approach to manage memory. Objects are categorized into different generations based on their age. The heap is divided into three generations: 0, 1, and 2. Newly created objects are allocated in Generation 0. If an object survives a garbage collection, it gets promoted to the next generation. This approach takes advantage of the observation that most objects have short lifetimes and allows for faster and more efficient garbage collection.
The garbage collector employs various algorithms to determine which objects are eligible for collection. One such algorithm is the mark-and-sweep algorithm. It starts by marking all objects that are reachable from the root of the object graph, typically starting with global and local variables. Any objects that are not marked as reachable are considered garbage and can be safely collected. The sweep phase then reclaims the memory occupied by the garbage objects, making it available for future allocations.
The garbage collector also includes a compaction phase, where it rearranges the objects in memory to reduce fragmentation and improve memory locality. Compaction involves moving live objects closer together, eliminating fragmented gaps and improving memory access efficiency.
Developers can influence the behavior of the garbage collector through various tuning options. These options allow for controlling aspects such as the size of the generations, when garbage collections occur, and how the collector interacts with finalization and unmanaged resources.
With each new version of the .NET Framework, the garbage collector undergoes improvements and enhancements to further optimize performance and memory usage. The introduction of features like background garbage collection, concurrent garbage collection, and server garbage collection has made significant strides in reducing the impact of garbage collection on application performance.
Understanding garbage collection in the .NET Framework is crucial for developers to build efficient and scalable applications. It helps prevent memory leaks, improves overall performance, and ensures stable and reliable software. By leveraging the capabilities of the garbage collector and following best practices, developers can effectively manage memory resources in their .NET applications.
garbage collection,garbage collection process,garbage collector,garbage collection in dot net framework,automatic garbage collection,dot net framework,dot net architecture,garbage collection architecture,garbage collection phases,garbage collection generation
what is garbage collection in dot net framework in hindi
what are the phases of garbage collection
what are the three generation of garbage collection
amit sagu, sagu amit
simplest explanation ever
Introduction to Dot net Framework/architecture : • .NET framework | .NET ...
Introduction to ADO dot net Architecture : • #1 ADO.net Architectur...
Introduction to just in time compiler : • #3 Just in Time Compil...
garbage collection,garbage collector,garbage collection in c#,c# garbage collector,garbage collection in c,garbage collection in java,garbage collector in java,c# garbage collection,what is garbage collection,c# garbage collector interview questions,garbage collection in .net framework,garbage collection explained,garbage collector machine,garbage collector introduction,garbage collector in c#,csharp garbage collector,garbage collector in .net
Educator : Amit Sagu
9467702051
facebook:www. sagu51
Download PPT: docs.google.co...

Пікірлер: 26
@AniqaRajput-my3zl
@AniqaRajput-my3zl 5 ай бұрын
This man deserves millions subscriber ❤❤🎉
@Omii0929
@Omii0929 Жыл бұрын
What a teaching sir 🙆‍♂️ Sir you need to more Famous
@cssimplified51
@cssimplified51 Жыл бұрын
Thank you 💐
@barwalgayatri4655
@barwalgayatri4655 Жыл бұрын
I sware i will never forget 3 phase of gc in my life after referring ur lunch example
@artisandekar9853
@artisandekar9853 Жыл бұрын
...m to sochri thi .net most ghatiya subject h kse exam clear krungi bina smje then apka video mila ...tysm sir sbse best explanation h easy way m !!🤗🙏
@Main_Radha_Rani_Ka
@Main_Radha_Rani_Ka Жыл бұрын
Ku esa kya lga .net m😅
@shreeshakaldambe
@shreeshakaldambe 3 ай бұрын
Thank you , Amit for creating such a good video. The way you take time and explain concepts by comparing it with real world scenarios is just awesome. You make these concepts interesting. I loved it. Big fan!!
@cssimplified51
@cssimplified51 3 ай бұрын
@shreeshakaldambe thank you very much for your appreciation
@kapilnagrale7611
@kapilnagrale7611 Жыл бұрын
Thanks for crisp explanation.
@abdulkadir-jh2yj
@abdulkadir-jh2yj Жыл бұрын
What a explanation yaarr❤❤❤
@330pavanp8
@330pavanp8 Жыл бұрын
Thank you so much 🙏
@TripathiPammi
@TripathiPammi Жыл бұрын
Thanx sir for making the video excellent 👍
@cssimplified51
@cssimplified51 Жыл бұрын
Glad you liked it
@contacttoshailesh
@contacttoshailesh Жыл бұрын
It's too good , thank yo so much
@Nathuram_Godse_Official
@Nathuram_Godse_Official 4 ай бұрын
Thanks sir. Helped a lot
@DrBhartiGoyal
@DrBhartiGoyal Жыл бұрын
great video, sir, thank you so much.
@Amanvlogingchw
@Amanvlogingchw Жыл бұрын
Achha samjh me aaya sir ❤️
@RahulMD-x9i
@RahulMD-x9i Жыл бұрын
very well explained
@TauG4
@TauG4 Жыл бұрын
Good work 👍
@saravjeetsingh1236
@saravjeetsingh1236 11 ай бұрын
Good one
@RockRock-tr8ji
@RockRock-tr8ji Жыл бұрын
👌👍
@Rajputt382
@Rajputt382 Жыл бұрын
Good teach
@chittuchaudhary
@chittuchaudhary 4 ай бұрын
Sir aple subscriber ittte km kyu hai. Apki video to gjjjjb ki hai sir
@deepakkarmaDK
@deepakkarmaDK 11 ай бұрын
Sir Design pattern in C # per bhi banaiye
@emanmalik1822
@emanmalik1822 Жыл бұрын
is the topic same for DSA??
@cssimplified51
@cssimplified51 Жыл бұрын
Yes
#5 Assemblies in .net | EXE | DLL files | CSE Simplified #assemblyfileindotnet
14:05
CSE Simplified (Sagu Amit)
Рет қаралды 8 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Step by Step Compilation Process in .NET Framework - Roles of CLR, CTS and CLS
5:23
Easy Engineering Classes
Рет қаралды 54 М.
.NET framework | .NET Architecture | Hindi |  Overview | Common Language Runtime |
23:47
CSE Simplified (Sagu Amit)
Рет қаралды 130 М.
Garbage Collection
8:00
Computer Shastra
Рет қаралды 43 М.
#2 Common Language Runtime |CLR in Dot Net Framework | Hindi | Amit Sagu
14:52
CSE Simplified (Sagu Amit)
Рет қаралды 19 М.
Garbage Collector In Net Framework
2:30
Program Snippets
Рет қаралды 494
.NET Core Garbage Collection
14:54
Coding Tutorials
Рет қаралды 26 М.
Garbage Collection (Mark & Sweep) - Computerphile
16:22
Computerphile
Рет қаралды 256 М.
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 126 М.
Java's G1 Garbage Collector
25:55
Java
Рет қаралды 18 М.