- 博客(7)
- 收藏
- 关注
翻译 在local_irq_disable之后再使用peempt_disable是否多余
从spinlock设计原理看,使用它的时候,在临界区间是务必确保不会发生进程切换。现在的问题是,如果已经关闭了中断,在同一处理器上如果不关掉内核抢占的特性,会不会有进程调度的情况发生,如果没有,那我个人的理解是,在local_irq_disable之后再使用peempt_disable就多此一举了。------------------------这个在SMP系统上最好理解了,假设有A和B两...
2020-02-14 09:02:05
217
原创 败者树 K路归并
#include <iostream>#include <vector>using namespace std;//交换两个数void swap(int *a,int *b){ int temp=*a; *a=*b; *b=temp;}const int branchesLength = 20;int branches[br...
2019-08-08 11:21:58
353
原创 gdb 函数地址翻译
(gdb) file 可执行文件名 //编译gcc -gReading symbols from /home/zhangyishu/cpss5_24/cpss...done.(gdb) x abort0x4557c0 <abort@plt>: 0xc21225ff(gdb) disassemble /m 0x4557c0Dump of assembler cod...
2019-05-31 17:01:44
1076
转载 epoll example
http://www.cnblogs.com/Anker/archive/2013/08/17/3263780.html
2015-11-07 18:17:56
349
原创 IO多路复用之epoll总结 http://www.cnblogs.com/Anker/archive/2013/08/17/3263780.html
IO多路复用之epoll总结http://www.cnblogs.com/Anker/archive/2013/08/17/3263780.html
2015-11-07 17:24:42
565
原创 2015.11.7 跟我一起写makefile
《跟我一起写makefile》http://www.cnblogs.com/pied/archive/2012/11/02/2751476.htmlpatsubst是patten substitude的缩写http://www.crifan.com/to_be_processed_gcc_compile_and_link_options-fpic-fpic-fpie-fpie-...
2015-11-07 10:34:45
476
原创 Stack is one important segment of the process’s memory layout. It is a dynamic memory buffer portion
http://dralu.com/?p=153
2015-11-06 19:45:28
453
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人