Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RealTime priority thread and GC

0 views
Skip to first unread message

Marius Gheorghe

unread,
Jun 9, 2005, 5:53:04 AM6/9/05
to
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.

Alvin Bruney [MVP - ASP.NET]

unread,
Jun 11, 2005, 7:28:41 AM6/11/05
to
No, the GC cannot be disabled in this way.

--
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
"Marius Gheorghe" <gma...@gmail.com> wrote in message
news:%23chCcmN...@TK2MSFTNGP10.phx.gbl...

john conwell

unread,
Jun 14, 2005, 7:52:03 PM6/14/05
to
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.

0 new messages