On Wed, Aug 13, 2008 at 11:27:14AM +0900, SASADA Koichi wrote:
> Hi,
> 
> MenTaLguY wrote:
> > Some way to reduce thread priority is important for situations like
> > idling work-stealing threads in a nonblocking/lockfree way, which is a
> > situation I've come up against recently.
> 
> inserting sleep is not enough?
No. In my application (a robot control framework), I have a control thread a
multiple planning threads. The control thread *MUST* be prioritized vs. the
planning thread, otherwise reaction to problems could be delayed because of high
planning load -- leading to a robot physical crash for instance ;-)

Thread priorities are useful. Please do not remove them (and sleeping is really
a hack in case MenTaLguY described), given that in worst cases one would do
nothing while CPU is available).

Sylvain