
操作系统
tianzhihehe
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
malloc函数的实质
malloc函数的实质体现在,它有一个将可用的内存块连接为一个长长的列表的所谓空闲链表。调用malloc函数时,它沿连接表寻找一个大到足以满足用户请求所需要的内存块。然后,将该内存块一分为二(一块的大小与用户请求的大小相等,另一块的大小就是剩下的字节)。接下来,将分配给用户的那块内存传给用户,并将剩下的那块(如果有的话)返回到连接表上。调用函数时,它将用户释放的内存块连接到空闲链上。到最后,空...原创 2015-05-04 01:00:50 · 263 阅读 · 0 评论 -
高级C代码的汇编分析--截取struct部分
高级C代码的汇编分析--截取struct部分 1: 2: typedef struct { 3: int a; 4: int b; 5: int c; 6: }mystruct; 7: 8: int func(int a,int b) 9: { 0040B800 push ebp 0...原创 2015-05-05 05:02:55 · 203 阅读 · 0 评论 -
linux打开最大文件数量1,048,576
File descriptors are represented by the C int type. Not using a special type is often considered odd, but is, historically, the Unix way. Each Linux process has a maximum number of files that it may ...原创 2015-05-25 10:53:42 · 260 阅读 · 0 评论