摘要: 2033 const struct sched_class rt_sched_class = {2034 .next = &fair_sched_class,2035 .enqueue_task = enqueu... 阅读全文
posted @ 2014-11-02 11:00 airforce 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1328 static struct sched_rt_entity *pick_next_rt_entity(struct rq *rq,1329 struct rt_rq *rt_rq)1330... 阅读全文
posted @ 2014-11-02 09:38 airforce 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 动态规划、分治法和贪心法都是利用求解子问题,而后利用子问题求解更上层问题,最终获得全局解决方案的方法。但是三者的应用场景和性质却存在着极大的不同:1.分治法很容易与动态规划问题混淆,但两者却有着本质上的差异。分治法采用的是递归的思想来求解问题,两个分解的子问题独立求解,其之间无任何的重叠。而上一层问... 阅读全文
posted @ 2014-11-01 22:47 airforce 阅读(4953) 评论(0) 推荐(0) 编辑
摘要: ikely()与unlikely()在2.6内核中,随处可见,那为什么要用它们?它们之间有什么区别呢?首先明确:if (likely(value))等价于if (value)if (likely(a>b)) {fun1();if (unlikely(value))等价于if (value)也就是说l... 阅读全文
posted @ 2014-10-30 08:50 airforce 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: sudo bash :change the current user into rootsu u1:change the current user into u1useradd: add new user into systemuserdel: delete a user from systemgr... 阅读全文
posted @ 2014-10-27 22:01 airforce 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Since these files are hidden you will have to do anls -ato list them. If you don't have one you can create one.Update:If I remember correctly, when I ... 阅读全文
posted @ 2014-10-27 21:19 airforce 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Compresstar -cvzf jy2653.2.tgz jy2653.2Decompresstar -xvf jy2653.1.tgz 阅读全文
posted @ 2014-10-27 21:02 airforce 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. make your own format file at your project's root or file's folder. (The clang-format will automatically use the latest format file to format your c... 阅读全文
posted @ 2014-10-26 00:38 airforce 阅读(427) 评论(0) 推荐(0) 编辑
摘要: read and write file is a very common operation regarding file mainuplation.However, the powerfull getline only can read line by line(with new line cha... 阅读全文
posted @ 2014-10-24 11:25 airforce 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Namestat, fstat, lstat - get file statusSynopsis#include #include #include int stat(const char *path, struct stat *buf);int fstat(intfd, struct stat *... 阅读全文
posted @ 2014-10-24 09:00 airforce 阅读(1087) 评论(0) 推荐(0) 编辑