【无标题】

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,数值越大,优先级越高
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值