![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
操作系统
tianzhihehe
这个作者很懒,什么都没留下…
展开
-
malloc函数的实质
malloc函数的实质体现在,它有一个将可用的内存块连接为一个长长的列表的所谓空闲链表。调用malloc函数时,它沿连接表寻找一个大到足以满足用户请求所需要的内存块。然后,将该内存块一分为二(一块的大小与用户请求的大小相等,另一块的大小就是剩下的字节)。接下来,将分配给用户的那块内存传给用户,并将剩下的那块(如果有的话)返回到连接表上。调用函数时,它将用户释放的内存块连接到空闲链上。到最后,空...原创 2015-05-04 01:00:50 · 222 阅读 · 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 ebp0...原创 2015-05-05 05:02:55 · 166 阅读 · 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 · 207 阅读 · 0 评论