会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mangoCzp
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2020年10月21日
linux 如何调试内存泄漏问题
摘要: 1.检测内存泄漏,可以用 ps -aux 等工具查看内存异常膨胀 2.定位并处理内存泄漏 静态代码分析工具 BEAM PC-lint splint 动态分析工具 valgrind 、purify 重载类的 new 和 delete 添加日志信息,日志分析定位内存泄漏 https://www.bili
阅读全文
posted @ 2020-10-21 20:13 mangoCzp
阅读(259)
评论(0)
推荐(0)
2020年9月21日
C++ 设计模式
摘要: 这个讲的很好,也有代码示例: https://refactoringguru.cn/design-patterns/singleton/cpp/example#example-0
阅读全文
posted @ 2020-09-21 14:09 mangoCzp
阅读(106)
评论(0)
推荐(0)
2020年9月18日
STL 容器 小 demo
摘要: #include <iostream> #include <chrono> #include <assert.h> #include <thread> #include <unistd.h> #include <algorithm> #include <numeric> #include <queu
阅读全文
posted @ 2020-09-18 18:46 mangoCzp
阅读(125)
评论(0)
推荐(0)
2020年9月16日
STL 与 线程安全
摘要: STL容器是否是线程安全的 转载http://blog.csdn.net/zdl1016/article/details/5941330 STL的线程安全. 说一些关于stl容器的线程安全相关的话题。 一般说来,stl对于多线程的支持仅限于下列两点:(貌似Effective STL中有描述) 1.多
阅读全文
posted @ 2020-09-16 19:26 mangoCzp
阅读(751)
评论(0)
推荐(0)
2020年9月10日
std::promise
摘要: std::promise code sample: #include <vector> #include <thread> #include <future> #include <numeric> #include <iostream> #include <chrono> void accumula
阅读全文
posted @ 2020-09-10 17:02 mangoCzp
阅读(277)
评论(0)
推荐(0)
C++ 异步多线程
摘要: 用到 C++ future 库,代码如下: #include <iostream> #include <future> #include <unistd.h> using namespace std; double f(double a,double b){ double c = a+b; slee
阅读全文
posted @ 2020-09-10 15:52 mangoCzp
阅读(957)
评论(0)
推荐(0)
2020年9月8日
IO 多路复用
摘要: 单线程或单进程同时监测若干个文件描述符是否可以执行IO操作的能力,redis 处理请求是单线程模型,采用了 非阻塞式 IO多路复用提升其性能。 https://zhuanlan.zhihu.com/p/115220699
阅读全文
posted @ 2020-09-08 16:42 mangoCzp
阅读(109)
评论(0)
推荐(0)
redis
摘要: INSTALL && CONFIGURE https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04 PRACTICE https://www.jianshu.com
阅读全文
posted @ 2020-09-08 16:32 mangoCzp
阅读(91)
评论(0)
推荐(0)
linux systemd
摘要: 用于启动守护进程 http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html
阅读全文
posted @ 2020-09-08 16:18 mangoCzp
阅读(104)
评论(0)
推荐(0)
分布式高可用架构演进
摘要: https://colobu.com/2019/09/18/The-Evolution-of-Architecture/
阅读全文
posted @ 2020-09-08 14:30 mangoCzp
阅读(92)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告