摘要: Windows提供Heap相关的API,可以创建多个Heap。但是Linux下只有一个意义上的Heap,就是Data Segment,由brk/sbrk系统调用来调整其大小。参考:http://man7.org/linux/man-pages/man2/sbrk.2.html 阅读全文
posted @ 2014-06-03 17:58 Daniel King 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 主要成员 union _Bxty { // storage for small buffer or pointer to larger one _Elem _Buf[_BUF_SIZE]; _Elem *_Ptr; } _Bx; size_type _Mysize; // current l... 阅读全文
posted @ 2014-06-03 17:38 Daniel King 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: a_file=$1a_step=$2b_file=$3b_step=$4a_start=1let a_end=$a_start+$a_stepb_start=1let b_end=$b_start+$b_stepa_lines=$(wc -l $a_file | awk '{print $1}')b... 阅读全文
posted @ 2014-06-03 14:39 Daniel King 阅读(202) 评论(0) 推荐(0) 编辑
摘要: cat /proc/$(pgrep helloworld)/status | grep Vm 阅读全文
posted @ 2014-06-03 10:47 Daniel King 阅读(151) 评论(0) 推荐(0) 编辑