|
发表于 2007-10-24 21:22:32
|
显示全部楼层
值越低,有限级越高
3.1 Description Basic execution unit on MAUI is either a task or HISR, and could be interrupted. Context switch takes place no matter system call is trapped or interrupts; and scheduling scheme applied on the system is priority scheduling. Table below states the priority coverage and their distribution convention. Any two tasks or two HISRs, which have identical priority, are scheduled in sequential manner. Execution Unit Priority Description 0 The highest priority HISR, is always reserved for L1_HISR, others are prohibited! Otherwise, fatal error would be encountered during HISR creation. (Fatal error code 1 = 0x213, code 2 = 0x04) 1 The second highest priority HISR. HISR 2 The lowest priority HISR, however, it still takes priority than tasks. KAL_PRIORITY_CLASS0 ~ (KAL_PRIORITY_CLASS18) Reserved for system usage only, it is suggested that customer tasks must not use the priority within the range. (KAL_PRIORITY_CLASS18 + 1) ~ (KAL_PRIORITY_CLASS19 + 9) For tasks, which are timing critical, like BMT (Battery Management Task), AUX and OBEX. KAL_PRIORITY_CLASS20 ~ (KAL_PRIORITY_CLASS21+9) Applications like MMI, WAP and JAVA occupy priority within the range. KAL_PRIORITY_CLASS22 ~ (KAL_PRIORITY_CLASS24 + 9) For tasks, which have rather lower priority, and to be scheduled when the system is free, for instance, NVRAM and TST tasks. Task KAL_PRIORITY_CLASS25 ~ (KAL_PRIORITY_CLASS25 + 5) For very low priority tasks, for example, priority (KAL_PRIORITY_CLASS25 + 5) is reserved of IDLE task. |
|