|
-
Apr 21st, 2005, 10:06 PM
#1
Thread Starter
Frenzied Member
Quote from book
Just got this in a book I'm busy with, so was wondering if someone can comment...
However, as with all design trade-offs, garbage collection comes at a price. You don't know the order in which objects will be destroyed. Objects are not necessarily destroyed in the reverse order of their creation (as they are in C++). You also don't know when the garbage collector will decide to destroy objects. An object is not destroyed at the moment that it becomes unreachable. Because destroying objects can be a time-consuming operation, the garbage collector destroys objects only when it is necessary (when the heap memory is exhausted) or when you explicitly ask it to (by calling the System.GC.Collect method). Clearly, this makes C# unsuitable for some time-critical applications
How would you define "time-critical" applications and what is to be used instead in such case?
-
Apr 22nd, 2005, 12:22 AM
#2
Re: Quote from book
A time critical app would be one where, for example, you are reading data from a source which is constantly updating the information it's sending out.
-
Apr 25th, 2005, 08:39 AM
#3
Thread Starter
Frenzied Member
Re: Quote from book
you write pages about ufo's and nonsense, and give me this..no hell, gimme more info! lol
ps....Unique, really cool profile one MVP site!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|