About Garbage Collector?
Answers were Sorted based on User's Feedback
Answer / sayeed
Garbage collection is an in deterministic process Associated
with CLR. It is used to release the managed free Objects
that are no more refrenced.
But there might be scenarios in which we need to release
certain resources held by an object (like a database
connection) once the object is no longer in use.
We have destructors in C#.C# destructors are nothing but
finalize methods in disguise, with a call to base class's
finalize method.
As we know, finalize method is called during garbage
collection by garbage collector. Hence, we cannot rely only
on C# destructors to explicitly release resources as
finalize methods on objects may never be called altogether
(if the program terminates abnormally) or might be called
only when the program terminates (in a normal way).
Hence it is always a good practice to implement IDisposable
interface in such cases and to write code to release
resources explicitly in the Dispose() method.In that case we
have to use GC.SuppressFinalize() method.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / seshu
garbage collection is a form of automatic memory management.
The garbage collector attempts to reclaim garbage or memory
used by objects that will never be accessed or mutated again
by the application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sivaprasad
i)GarbageCollector will take care about Automatic Memory
Management it will mark the objects which has Referrence
Count is Zero.
ii)One Background Thread running in the Application with
Normal Priority And Marking The Objects Which has Referrence
Count is Zero.when there is no Applications Threads Are
Running it will Take High Priority.
iii)And this Garbage Collector Will Take Care About
"Circularreferrences"(means One Pair Of Objects Referring To
Each Other)
| Is This Answer Correct ? | 0 Yes | 1 No |
Apart from IDE what are the enhancements in asp.net 2.0?
Explain the difference between response.redirect vs server.transfer
How does the regular expression validator work? What are two situations when you might want to use one?
What is gacutil.exe? Where do we store assemblies, Should sn.exe be used before gacutil.exe?
Best Institute in india for online training (Dotnet/java/Tibco/Dwh/etc.....)
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
Diff between web user control and web custom control?
How to kill session?
Where is the view state data stored?
why many web.config files are used in are project
Explain the functionality of "EnableViewState" ? What happens if you want it on or off?
What is use of Master Page in ASP.NET web pages?
0 Answers Sans Pareil IT Services,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)