Re: time critical programming

Tech-Archive recommends: Speed Up your PC by fixing your registry



martin wrote:
In .NET 3.5 you will be able to set:
System.Runtime.GCSettings.LatencyMode = GCLatencyMode.LowLatency
to fix this problem. In prior versions you have no way to influence how much time the GC consumes and when.
<snip>
"Peter Sprenger" wrote:
Hi,

I have no experience in doing time critical things in a .NET language. I need to modify 8 ISDN streams (each 64kbit) in realtime with max. 30ms delay. Has somebody experience in doing time ctritical things in C# or another .NET language? Could the garbage collector be a problem?


As Jon Skeet pointed out, the whole platform (Windows) is not a real time operating system so any kind of guarantee on latency goes out the window once you target Windows in general, .NET or otherwise. Sure, the GC system in .NET adds more to the mix, but even a native C++ application can't have any guarantees.

You can optimize and pray, but that's about it.

Note that I'm talking about application space. I have no idea wether anything running on ring 0 would be able to make any such guarantees.

--
Lasse Vågsæther Karlsen
mailto:lasse@xxxxxxxxxxx
http://presentationmode.blogspot.com/
.