UCOSII 源码级学习

一、FreeRTOS比uCOS II优胜的地方

1.内核ROM和耗费RAM都比uCOS小,特别是RAM。这在单片机里面是稀缺资源,uCOS至少要5K以上,而FreeRTOS用2~3K也可以跑的很好。

2.FreeRTOS可以用协程(co-routine),减少RAM消耗(共用STACK)。uCOS只能用任务(TASK,每个任务有一个独立的STACK)

3.FreeRTOS可以有优先度一样的任务,这些任务是按时间片来轮流处理,uCOSII每个任务都只有一个独一无二的优先级。因此,理论上讲,FreeRTOS可以管理超过64个任务,而uCOS只能管理64个。

4.FreeRTOS是在商业上免费应用,uCOS在商业上的应用是要付钱的。

二、FreeRTOS不如uCOS的地方

1.比uSOS简单,任务间通讯FreeRTOS只支持Queque,Semaphores,Mutex,uCOS。除这些外,还支持Flag,MailBox。

2.uCOS的支持比FreeRTOS多,除操作系统外,FreeRTOS只支持TCP/IP,uCOS则有大量外延支持,比如FS,USB,GUI,CAN等的支持。

3.uCOS可靠性更高,而且耐优化,FreeRTOS在设置成中等优化的时候,就会出现问题

三、ucosII和ucosIII特性对比

 

参考:

https://www.zhihu.com/question/268526065/answer/2936181067

STM32---ucosii和ucosiii_ucosiii和ucosii区别_只为成长的博客-CSDN博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
\SOFTWARE The main directory from the root where all software-related files are placed. \SOFTWARE\BLOCKS The main directory where all ‘Building Blocks’ are located. With μC/OS-II, I included a ‘building block’ that handles DOS-type compatible functions that are used by the example code. \SOFTWARE\BLOCKS\TO This directory contains the files for the TO utility (see Appendix E, TO). The source file is TO.C and is found in the \SOFTWARE\TO\SOURCE directory. The DOS executable file (TO.EXE) is found in the \SOFTWARE\TO\EXE directory. Note that TO requires a file called TO.TBL which must reside on your root directory. An example of TO.TBL is also found in the \SOFTWARE\TO\EXE directory. You will need to move TO.TBL to the root directory if you are to use TO.EXE. \SOFTWARE\uCOS-II The main directory where all μC/OS-II files are located. \SOFTWARE\uCOS-II\EX1_x86L This directory contains the source code for EXAMPLE #1 (see section 1.07, Example #1) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX2_x86L This directory contains the source code for EXAMPLE #2 (see section 1.08, Example #2) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX3_x86L This directory contains the source code for EXAMPLE #3 (see section 1.09, Example #3) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\Ix86L This directory contains the source code for the processor dependent code (a.k.a. the port) of μC/OS-II for an 80x86 Real-Mode, Large Model processor. \SOFTWARE\uCOS-II\SOURCE This directory contains the source code for processor independent portion of μC/OS-II. This code is fully portable to other processor architectures.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值