![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unix/Linux基础
文章平均质量分 62
月朗风清扬
这个作者很懒,什么都没留下…
展开
-
malloc实现原理探究
malloc原创 2023-03-04 16:19:44 · 714 阅读 · 0 评论 -
detach,主线程终止后子线程会结束吗
研究detach的坑和进程的退出机制原创 2023-02-17 21:01:29 · 4949 阅读 · 5 评论 -
用GDB查看c/c++内存对象模型
使用GDB查看c/c++内存原创 2021-12-11 16:10:55 · 712 阅读 · 0 评论 -
如何往指定的内存地址写数据
首先,随便找一块可用的内存地址。#includeint main(void){ int a = 1; printf("&a=%p\n", &a); return 0;}某次的运行结果为: &a=0x7fff124b3cfc#includeint main(void){ int *p = (int*)0x7fff124b3cfc; *p原创 2017-02-04 10:17:22 · 13148 阅读 · 2 评论 -
文件缓冲区测试实例及总结
声明:这篇笔记是我去年写的,当时参考了网友的博客,现在想不起来是哪篇了。如有侵权请告知,我会及时修改,谢谢。 “Talk is cheap, show me the code",so,先来一个例子吧。#includeint main(void){ int i; for(i=1 ; i <= 1024 ; i++) { printf("%c",'a'); } while(原创 2017-02-03 10:05:26 · 741 阅读 · 0 评论