自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

翻译 在local_irq_disable之后再使用peempt_disable是否多余

从spinlock设计原理看,使用它的时候,在临界区间是务必确保不会发生进程切换。现在的问题是,如果已经关闭了中断,在同一处理器上如果不关掉内核抢占的特性,会不会有进程调度的情况发生,如果没有,那我个人的理解是,在local_irq_disable之后再使用peempt_disable就多此一举了。------------------------这个在SMP系统上最好理解了,假设有A和B两...

2020-02-14 09:02:05 181

原创 败者树 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 297

原创 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 1002

转载 epoll example

http://www.cnblogs.com/Anker/archive/2013/08/17/3263780.html

2015-11-07 18:17:56 312

原创 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 541

原创 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 438

原创 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 404

空空如也

空空如也

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

TA关注的人

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