自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (2)
  • 收藏
  • 关注

转载 data race check with valgrind

http://valgrind.org/docs/manual/hg-manual.html /* * gcc t.c -o t -g -lpthread * valgrind --tool=helgrind ./t */ #include int var = 0; void* child_fn ( void* arg ) { var++; /* Unprotected re

2015-11-25 22:27:30 515

转载 DOS pause-like command in Bash

http://stackoverflow.com/questions/92802/what-is-the-linux-equivalent-to-dos-pause read does this: user@host:~$ read -n1 -r -p "Press any key to continue..." key [...] user@host:~$ The -n1 spe

2015-11-04 18:12:16 542

转载 [git]git export like command

Probably the simplest way to achieve this is with git archive. If you really need just the expanded tree you can do something like this. git archive master | tar -x -C /somewhere/else Most of the t

2015-11-02 21:38:57 1222

转载 [git].gitconfig文件

[user]     name = adream307     email = adream307@163.com [alias]   co = checkout   ci = commit   st = status   br = branch   hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=

2015-11-02 21:30:36 674

fetch12306

本文在Linux平台上,以Python为开发工具,介绍12306抢票软件的基本原理,并引入示例,讲解如何自己编写一个12306抢票软件。

2016-12-22

lq51--自己写的基于51单片机的嵌入式实时操作系统

Keil 自带的 RTX51—Tiny 系统有这样几个缺点:1、非占先式任 务调度,这样系统的实时性就很难保证;2、提供的系统服务太少, 只有 wait 与 signal。而 RTX51—Tiny 的优点是:1、Keil 公司自己开 发的,使用_task_关键字区别每个任务,这样可以使得被不同任务调 用的不同函数即使没有相互调用,他们的局部变量也不会相互覆盖。 免去了在 SmallRTOS 中需要手动制止函数间局部变量的相互覆盖。 2、内核小。整个 RTX51--Tiny 完整编译只需 900B 的空间。 lq51 系统整合了 RTX51—Tiny 的优点。1、在 lq51 系统中_task_ 关键依然有效,0 号任务依然是最高优先级的任务,1 号任务次之, 依次类推。2、lq51 系统完整编译只需 2.5K 的 ROM,并且系统自带 的 128B RAM 对 lq51 系统也是绰绰有余的。同时 lq51 系统弥补了 RTX51—Tiny 的缺点。首先 lq51 系统采用占先式任务调度,这样可 以最大限度保证系统的实时性。其次 lq51 系统提供 lqDelay、lqWaitFlg、 lqWaitSem、lqWaitMsg 这样四种系统服务,并 且每种系统服务都是可裁剪的。 lq51 系统中很多关于实时系统的概念及实现方法是从 ucosII 中学 来的,同时借鉴了 SmallRTOS 及 RTX51—Tiny。

2009-04-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除