会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ho966
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2022年3月16日
select、poll和epoll的区别
摘要: 123
阅读全文
posted @ 2022-03-16 20:50 ho966
阅读(36)
评论(0)
推荐(0)
2021年9月10日
常用网络问题工具
摘要: nload eno1 -u m(nload 网卡名称 -u 单位) 查看网卡吞吐量 watch -n 1 " date;netstat -nalp|grep 7302" sar -n DEV 1 4 查看网卡信息
阅读全文
posted @ 2021-09-10 11:45 ho966
阅读(40)
评论(0)
推荐(0)
2021年9月9日
strace工具
摘要: strace -tt -T -v -f -e trace=file -o /data/log/strace.log -s 1024 -p 23489 -tt 在每行输出的前面,显示毫秒级别的时间-T 显示每次系统调用所花费的时间-v 对于某些相关调用,把完整的环境变量,文件stat结构等打出来。-f
阅读全文
posted @ 2021-09-09 19:08 ho966
阅读(42)
评论(0)
推荐(0)
2021年7月6日
objcopy分离符号文件
摘要: 1、 可以通过objcopy分离符号文件 objcopy --only-keep-debug a.out a.out.sym // 拷贝出一个符号表文件 objcopy --strip-debug a.out // 删除符号文件 objcopy --strip-all a.out // 去除所有符号
阅读全文
posted @ 2021-07-06 16:02 ho966
阅读(494)
评论(0)
推荐(0)
2021年5月24日
/bin/bash^M: bad interpreter
摘要: linux环境执行脚本文件时,如果这个文件是从win环境拷贝过来的,极有可能因为换行符的原因(win是\n\r, 而linux没有\r) 导致脚本执行失败, 所有需要去掉\r, 执行命令 sed -i "s/\r//" filename 就可以
阅读全文
posted @ 2021-05-24 11:26 ho966
阅读(42)
评论(0)
推荐(0)
2021年3月2日
std::deque
摘要: std::deque是区别于vector和list的一种有序容器,可以像vector一样高效的取下标,却别于vector, deque可以高效的前插入,自我成长也比vector要高效些。但deque的迭代器操作是没有vector高效的,对deque排序也是异常复杂的,deque的数据结构如下图所示。
阅读全文
posted @ 2021-03-02 11:14 ho966
阅读(277)
评论(0)
推荐(0)
2021年3月1日
std::set和std::multiset
摘要: std::set template <typename Tp> struct Identity_ { const Tp& operator()(const Tp& x) const { return x; } }; template <typename Key, typename Compare =
阅读全文
posted @ 2021-03-01 10:07 ho966
阅读(151)
评论(0)
推荐(0)
2021年2月27日
std::map和std::mulitmap的简单实现
摘要: std::map的实现 template <typename Pair> struct Select1st_ { const typename Pair::first_type& operator()(const Pair& x) const { return x.first; } }; templ
阅读全文
posted @ 2021-02-27 22:51 ho966
阅读(283)
评论(0)
推荐(0)
rb_tree红黑树
摘要: 1、概念: 标准库的std::map、std::mulitmap、std::set、 std::multiset统称为关联式容器,其底层数据结构是基于红黑树实现的。 红黑树作为一种二叉树,满足以下规则: 1)每个节点不是红色就是黑色 2)根节点为黑色 3)如果节点为红色,其子节点必须为黑色 4)任何
阅读全文
posted @ 2021-02-27 16:02 ho966
阅读(139)
评论(0)
推荐(0)
2021年2月25日
hash_set和hash_multiset
摘要: 1 #include "MyHashTable.h" 2 template <typename Tp> 3 struct Identity 4 { 5 const Tp& operator()(const Tp& x) const { return x; } 6 }; 7 template <typ
阅读全文
posted @ 2021-02-25 20:43 ho966
阅读(70)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告