Mic_chen

It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2020年5月14日

摘要: 1、原子操作问题: 原代码: int __atomic_add(int *ptr, int value) { int_disable(); *ptr += value; int_enable(); return *ptr; } 存在问题:ptr的操作没有在临界区中,return *ptr不是原子操作 阅读全文
posted @ 2020-05-14 17:15 Mic_chen 阅读(89) 评论(0) 推荐(0) 编辑

摘要: 2020.5.14 经过一个项目基于rt-thread的深入熟悉,对rt-thread的印象总结如下。 不足: 1、千万装机量应该是对最小内核说的,这部分确实还没有发现很严重的问题,但也有些接口异常处理不足。2、component里面的组建稳定性是不足的,特别是pthread的资源回收,dfs的非常 阅读全文
posted @ 2020-05-14 15:05 Mic_chen 阅读(1987) 评论(0) 推荐(0) 编辑