Still confused about thread priorities
Still confused about thread priorities
- Subject: Still confused about thread priorities
- From: Christian Mike <email@hidden>
- Date: Thu, 1 Nov 2001 13:56:08 -0500
I have been searching both the Cocoa and Darwin list server archives for
information about setting thread priorities. It still has me confused. I am
starting several background threads using NSThread detachNewThreadSelector:.
I want all of these threads to have varying priorities, some higher than the
GUI and come lower. I am have trouble reaching a consensus on the following
items:
- Is a "Cocoa" thread based on pthreads, mach threads, or both?
- Is it "better" to use pthread or mach techniques to alter thread
priorities?
- Some of the e-mails seemed to indicate that thread priorities were
dynamically adjusted based on CPU usage and "nice" values. If that the case,
and if so how do I make a thread "stick" at a high priority?
- Other reading seemed to indicated that some of the threading priority
scheduling stuff was not fully implemented, or at least not hooked up
between pthread and mach. Is that still the case, or has everything been
connected?
Thanks.
Michael Christian
Thomson multimedia Inc.