task & thread
任务和线程在Kithara中是不同的概念,task的表述用在Kithara的实时环境中,而Thread的表述用在windows的非实时环境下。
- thread是windonws下的,非实时
- task是实时的,Kithara下的
下面是Kithara官网上的描述:
Note, that we distinguish between a “thread” and a “task”, even though both mechanisms are comparable:
a “thread” is the (non real-time) parallelization concept of Windows
a “task” is the parallelization concept of Kithara RealTime Suite
in order to avoid mixing up the two concepts. Threads are running in the Windows application context, whereas tasks are running in the real-time context of Kithara.
优先级
windows环境下和Kithara实时环境下,数值越大,优先级越高
- windonw下的线程的优先级是0-31,0-15是普通优先级,16-31是“实时”优先级;这里是所谓实时,与Kithara的实时没有关联,只是windows不能动态改变该thread的优先级
- Kithara实时环摬下的优先级也是0-255,数值越大,优先级越高