摘要: 确认将博客搬家至CSDN https://blog.csdn.net/zhongbeizhoujie?type=blog 阅读全文
posted @ 2023-04-13 13:30 图灵的图,图灵的灵。 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 一、进程退出 有8种方式使进程终止(termination),其中5种为正常终止: (1)从main返回。 (2)调用exit。 (3)调用_exit或_Exit。 (4)最后一个线程从其启动例程返回。 (5)最后一个线程调用pthread_exit。 异常终止有3种方式: (6)调用abort。 阅读全文
posted @ 2023-04-06 13:21 图灵的图,图灵的灵。 阅读(41) 评论(0) 推荐(0) 编辑
摘要: TCP与UDP udp:面向无连接的通信协议,数据包括目的端口信息和源端口信息 优点:面向无连接,操作简单,要求系统资源较少,速度快,由于不需要连接,可进行广播发送 缺点:发送数据之前不需要与对方建立连接,接收到数据时也不需要发送确认信号,发送端不知道接收端是否正确接接收,不会重发,不可靠。 tcp 阅读全文
posted @ 2023-04-06 12:17 图灵的图,图灵的灵。 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 带着几个关注点去研读源码 算法设计的整体逻辑是什么,核心点是什么? 算法是如何达到高并发的? 算法的高并发能力极限? 既然是生成ID,那么生成的可用量有多大,可用的时间为多少,ID的存储方式? 算法是否有缺陷,如何避免或者改进? 算法是否可自由拓展或改造,以契合当前项目需求? SnowFlake源码 阅读全文
posted @ 2021-05-18 15:08 图灵的图,图灵的灵。 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 93. 复原IP地址 题目 给定一个只包含数字的字符串,复原它 阅读全文
posted @ 2020-08-11 00:13 图灵的图,图灵的灵。 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 696. 计数二进制子串 题目 给定一个字符串 s,计算具有相 阅读全文
posted @ 2020-08-10 23:36 图灵的图,图灵的灵。 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 题目 字符串有三种编辑操作:插入一个字符、删除一个字符或者替换 阅读全文
posted @ 2020-07-06 02:15 图灵的图,图灵的灵。 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 287. 寻找重复数 题目 给定一个包含 n + 1 个整数的 阅读全文
posted @ 2020-05-31 16:13 图灵的图,图灵的灵。 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 5. 最长回文子串 题目 给定一个字符串 s,找到 s 中最长 阅读全文
posted @ 2020-05-22 21:49 图灵的图,图灵的灵。 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode:https://leetcode cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 21. 合并两个有序链表 题目 将两个升序链表合并为一个新的升 阅读全文
posted @ 2020-05-22 21:32 图灵的图,图灵的灵。 阅读(250) 评论(0) 推荐(0) 编辑