上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 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)
摘要: 这个讲的很好,也有代码示例: https://refactoringguru.cn/design-patterns/singleton/cpp/example#example-0 阅读全文
posted @ 2020-09-21 14:09 mangoCzp 阅读(106) 评论(0) 推荐(0)
摘要: #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)
摘要: 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)
摘要: 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++ 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)
摘要: 单线程或单进程同时监测若干个文件描述符是否可以执行IO操作的能力,redis 处理请求是单线程模型,采用了 非阻塞式 IO多路复用提升其性能。 https://zhuanlan.zhihu.com/p/115220699 阅读全文
posted @ 2020-09-08 16:42 mangoCzp 阅读(109) 评论(0) 推荐(0)
摘要: 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)
摘要: 用于启动守护进程 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 下一页