找回密码
 注册
搜索
查看: 1119|回复: 4

[讨论] MTK 方案 task优先级请教

[复制链接]
发表于 2007-10-23 17:23:15 | 显示全部楼层 |阅读模式
请教各位大侠:
MTK平台的task优先级是怎么约定的,数字越大,优先级越高,还是数字越大优先级越低?
能举例几个重要的task的优先级? 有没有这方面的文档?
 楼主| 发表于 2007-10-24 17:41:39 | 显示全部楼层
有没有大侠指点一二?
点评回复

使用道具 举报

发表于 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.
点评回复

使用道具 举报

 楼主| 发表于 2007-10-30 16:19:20 | 显示全部楼层
多谢大侠
点评回复

使用道具 举报

发表于 2008-1-17 20:13:29 | 显示全部楼层
怎么都没中文版的啊?英文看的很辛苦[em03]
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-12-26 00:58 , Processed in 0.044556 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表