2018年2月13日

The key of real time embedded system

摘要: 对于实时嵌入式系统来说,最重要的是每一个进程所需时间的可检测性,可预测性。要不你的实时性是没有办法保证的。有些时候你对一些没有从事过嵌入式开发的人谈这个进程(TASK)设计是按8ms被调度一次,他们会觉得很奇怪。所以尽量避免一些不可预测的操作是非常重要的,比如说动态内存分配等。 我这次就遇到一个问题 阅读全文

posted @ 2018-02-13 15:30 荷树栋 阅读(109) 评论(0) 推荐(0) 编辑

Producer and consumer

摘要: Below is from wiki, just for study & record. In computing, the producer–consumer problem (also known as the bounded-buffer problem) is a classic examp 阅读全文

posted @ 2018-02-13 13:04 荷树栋 阅读(164) 评论(0) 推荐(0) 编辑

2018年2月12日

auto_ptr & share_ptr & unique_ptr

摘要: Using auto_ptr, you don’t need think about the memory deallocation, but there are also many arguments about it because of auto_ptr ownership translati 阅读全文

posted @ 2018-02-12 16:25 荷树栋 阅读(196) 评论(0) 推荐(0) 编辑

Scrum

摘要: Scrum is a method of quickly and flexibly making a product idea reality in close cooperation with the customer. Small teams largely manage this activi 阅读全文

posted @ 2018-02-12 15:21 荷树栋 阅读(115) 评论(0) 推荐(0) 编辑

The dis/advantage of forward declaration

摘要: In our projects, in C++ head file, if reference to some classes (reference or pointer), instead of include header file directly, we recommend to use f 阅读全文

posted @ 2018-02-12 11:34 荷树栋 阅读(418) 评论(0) 推荐(0) 编辑

Explicit

摘要: Prefixing the explicit keyword to the constructor prevents the compiler from using that constructor for implicit conversions. Example is shown below. 阅读全文

posted @ 2018-02-12 11:03 荷树栋 阅读(174) 评论(0) 推荐(0) 编辑

2018年2月9日

Using C++11 function & bind

摘要: The example of callback in C++11 is shown below. The output: void MyFunc1(int, int)11 void MyFunc2(int, int)12 Another example to show the message han 阅读全文

posted @ 2018-02-09 17:07 荷树栋 阅读(203) 评论(0) 推荐(0) 编辑

区块链 blockchain

摘要: 区块链是去中心化的记账方式。没有中心,安全,高效。区块链是属于分布式计算的一种。是一种数据库。 区块链不是什么比特币,xx币。而是比特币他们用了区块链的技术。 区块链具有去中心化、无须中心信任、不可篡改和加密安全等特点,正在走进政府决策、金融机构、大型企业的视野,并应用于数字货币、支付清算、信贷融资 阅读全文

posted @ 2018-02-09 13:49 荷树栋 阅读(144) 评论(0) 推荐(0) 编辑

2018年2月8日

Using C++ new() placement in embedded system

摘要: For new(), there are three definition in C++11, which are listed below. throwing (1) void* operator new (std::size_t size); nothrow (2) void* operator 阅读全文

posted @ 2018-02-08 17:20 荷树栋 阅读(162) 评论(0) 推荐(0) 编辑

2018年2月7日

Embedded SW uses STL or not

摘要: As the complexity increasing of embedded software, more and more projects/products use C++ as the implementation language. Firstly, I want to make a c 阅读全文

posted @ 2018-02-07 14:29 荷树栋 阅读(137) 评论(0) 推荐(0) 编辑

导航