上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 107 下一页
摘要: 转自:https://cloud.tencent.com/developer/article/1784548 1.介绍 一般我们的接口操作包括两方面:1计算(主要消耗cpu),2等待IO(对于我们的应用来说就是请求缓存 请求其他协议、请求数据库等)。我们的服务一般也分为CPU密集型(一般是后台脚本类 阅读全文
posted @ 2023-01-15 23:06 lypbendlf 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/DLUTBruceZhang/article/details/9822235 1.例子 int main(){ string s="abc"; cout<<sizeof(s)<<"\n"; cout<<sizeof(string)<<"\n"; ve 阅读全文
posted @ 2023-01-15 20:19 lypbendlf 阅读(2919) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/470315089 1.介绍 通过以下命令: cat /proc/pid/status 即可查看所占用内存情况,C++中通过getpid()函数即可打印进程的pid,类型为pid_t, VSZ:Virtual Memory Size(虚 阅读全文
posted @ 2023-01-15 20:14 lypbendlf 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.jianshu.com/p/0821801170dd,https://zhuanlan.zhihu.com/p/357115847 1.什么是优雅退出 退出一个线程的时候,要保证它使用的资源被释放掉,不能直接stop,否则可能导致未定义的行为,那么如何保证线程退出前所占 阅读全文
posted @ 2023-01-14 12:01 lypbendlf 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/Koyurion/article/details/86315532 1.用法 #include<typeinfo> //需要包含头文件 typeid(data).name() //打印值: bool: b char: c signed char: a 阅读全文
posted @ 2022-12-19 17:54 lypbendlf 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/zhangjiankun/archive/2011/11/27/2265184.html 1.介绍 计算机的存储在物理上是二进制的,所以文本文件与二进制文件的区别并不是物理上的,而是逻辑上的。这两者只是在编码层次上有差异。 文本文件是基于字符编码 阅读全文
posted @ 2022-12-18 22:39 lypbendlf 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1.ASCII https://zhuanlan.zhihu.com/p/348535438,https://developer.aliyun.com/article/294103 分为打印字符和不可打印字符,不可打印字符即控制字符,打印不会正常显示,ASCII码0-32及127对应的字符的显示是不 阅读全文
posted @ 2022-12-18 21:58 lypbendlf 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 转自:http://doc.redisfans.com/string/set.html,https://juejin.cn/post/7120420868513071141 1.介绍 SET key value [EX seconds] [PX milliseconds] [NX|XX] EX se 阅读全文
posted @ 2022-12-18 19:21 lypbendlf 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 转自:https://segmentfault.com/a/1190000039670844,https://bbs.csdn.net/topics/392160228,https://cloud.tencent.com/developer/article/1775715 1.介绍 SETNX ke 阅读全文
posted @ 2022-12-17 00:46 lypbendlf 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: 转自:http://xcd.blog.techweb.com.cn/archives/173.html,https://blog.csdn.net/carson_ho/article/details/70568606 1.例子 int main(int argc, char* argv[]) { u 阅读全文
posted @ 2022-12-13 10:15 lypbendlf 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 107 下一页