RTOS学习笔记

RAW-OS

1.tick_list中,剩余时间最少的任务排在最前面。

2.时间片轮转发生在同等优先级的任务之间。

3.semaphore中,当任务因为得到信号量而被唤醒时,系统从信号量链表的最前端获取任务地址。(在阻塞时,进入队列的方式是 block_way == RAW_BLOCKED_WAY_PRIO)

4.queue中,如果opt_send_method = SEND_TO_END,那么就存放在 write 指针处;否则就存放在 read 指针处

5.对于信号量,互斥量,事件的区别。

   原文地址:http://www.kalinskyassociates.com/Wpaper1.html

  Another kind of communication between tasks in embedded systems is the passing of what might be called
 “synchronization information” from one task to another. “Synchronization information” is like a command, where some
 commands could be positive, and some negative.  For example, a negative command to a task would be something like
 “Please don’t print right now, because my task is using the printer”. Or more generally, “I want to lock the … for my own
 use only”.  A positive command would be something like “I’ve detected a cardiac emergency, and I want you to help me
 handle it”.  Or more generally, “Please join me in handling ….”.

 Most RTOSs offer a semaphore or mutex mechanism for handling negative synchronization (sometimes called “mutual
 exclusion”).  These mechanisms allow tasks to lock certain embedded system resources for their use only, and
 subsequently to unlock the resource when they’re done.

 For positive synchronization, different RTOSs offer different mechanisms.  Some RTOSs offer event-flags, while others
 offer signals.  And yet others rely on message passing for positive synchronization as well as data passing duties.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值