04 2016 档案

摘要:张明赫 + 原创作品转载请注明出处 + 《Linux内核分析》MOOC课程http://mooc.study.163.com/course/USTC-1000029000 Linux内核的理解 计算机有三大法宝:1.存储程序计算机工作模型(操作系统中最基础的逻辑结构);2.函数调用堆栈(高级语言得以 阅读全文
posted @ 2016-04-28 21:20 小剑灬 阅读(138) 评论(0) 推荐(0)
摘要:1.理解Linux系统中进程调度的时机,可以在内核代码中搜索schedule()函数,看都是哪里调用了schedule(),判断我们课程内容中的总结是否准确; 1.理解Linux系统中进程调度的时机,可以在内核代码中搜索schedule()函数,看都是哪里调用了schedule(),判断我们课程内容 阅读全文
posted @ 2016-04-17 18:42 小剑灬 阅读(243) 评论(0) 推荐(0)
摘要:一、编译链接过程 1.预处理,处理代码中的宏定义和 include 文件,并做语法检查. gcc -E -o hello.cpp hello.c -32 2.编译成会变代码 gcc -x cpp-output -S -o hello.s hello.cpp -m32 3.汇编成目标代码 gcc -x 阅读全文
posted @ 2016-04-10 17:45 小剑灬 阅读(204) 评论(0) 推荐(0)
摘要:1.task_struct的数据结构 1235struct task_struct { 1236 volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ 1237 void *stack; 1238 atomic_t usag 阅读全文
posted @ 2016-04-03 21:29 小剑灬 阅读(410) 评论(0) 推荐(0)