No, the GC cannot be disabled in this way.

Signature
Regards,
Alvin Bruney - ASP.NET MVP
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
> I'm interested to know if having a few threads with the RealTime priority
> can somehow "disable" the GC. I know these are not officilay supported.
>
> Thanks.
I dont know if the CLR will allow you to create a thread with a priority of
RealTime, but if it can, then yes, this will affect the GC.
Any thread with a priority of RealTime (16 - 32) will compete for time with
OS level system threads (incliding threads running JIT and GC) with the
thread scheduler.
The thread scheduler prioritizes all threads based on its priority. When
its ready to do a context switch to another thread, it just looks for threads
with the highest priority, and if that thread is not in a wait status, it
gets CPU time. So a thread with priority of 32 will supercede all threads
with a priority <= 31. Not a good idea.
> I'm interested to know if having a few threads with the RealTime
> priority can somehow "disable" the GC. I know these are not officilay
> supported.
>
> Thanks.