Dear Sirs,

why pHashThread[PRIORITY_LEVEL_HASHSIZE]£¬PRIORITY_LEVEL_HASHSIZE£½32,set
the thread priority from 255 to 248 can only allocate to
pHashThread[31],but how to thread of THREAD_PRIORIY_TIME_CRITICAL and
THREAD_PRIORITY_IDLE shared cpu?
i think the priority of 255~248 is corresponding to
THREAD_PRIORITY_TIME_CRITICAL~THREAD_PRIORITY_IDLE,is right?

Thanks,

Re: How to assign CE's Priority? by Paul

Paul
Thu Oct 16 11:43:52 CDT 2003

Time critical threads execute without yielding until they either complete or
relinquish control (call a function which sleeps in some way). Idle threads
will only run when there are *no* higher priority threads which are ready to
run (not sleeping). So, if I understand your question about sharing of the
CPU between idle threads and time critical threads: they don't share the
CPU. The time critical thread takes it all...

Paul T.

"Markel" <scdyx@hotmail.com> wrote in message
news:uGu1jDAlDHA.2528@TK2MSFTNGP12.phx.gbl...
> Dear Sirs,
>
> why pHashThread[PRIORITY_LEVEL_HASHSIZE]£¬PRIORITY_LEVEL_HASHSIZE£½32,set
> the thread priority from 255 to 248 can only allocate to
> pHashThread[31],but how to thread of THREAD_PRIORIY_TIME_CRITICAL and
> THREAD_PRIORITY_IDLE shared cpu?
> i think the priority of 255~248 is corresponding to
> THREAD_PRIORITY_TIME_CRITICAL~THREAD_PRIORITY_IDLE,is right?
>
> Thanks,
>
>