上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页
摘要: 介绍 默认情况下,创建的线程即是可连接的(或可结合的,joinable)。这意味着我们可以使用pthread_join()函数在任何其它线程中等待它(可连接线程)的终止: #include <pthread.h> int pthread_join( pthread_t thread, //threa 阅读全文
posted @ 2020-08-02 22:38 Smah 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 正文目录: 1. 什么是稳定性?2. 如何提高可靠性呢?3. 成功的开发流程4. 成功的项目管理5. 严格的质量控制 1. 什么是稳定性? 稳定性,英文中用(可靠性)Reliability engineering来研究,可靠性工程是系统工程的一个子学科,它主要研究设备无故障运行的能力。可靠性描述了系 阅读全文
posted @ 2020-08-02 19:03 Smah 阅读(748) 评论(0) 推荐(0) 编辑
摘要: sudo vi /etc/systemd/system/network-online.target.wants/networking.service将里面的TimeoutStartSec=5min 修改为TimeoutStartSec=10sec 阅读全文
posted @ 2020-07-29 16:00 Smah 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 给定一个整数矩阵,找出最长递增路径的长度。 对于每个单元格,你可以往上,下,左,右四个方向移动。 你不能在对角线方向上移动或移动到边界外(即不允许环绕)。 示例 1:输入: nums = [[9,9,4], [6,6,8], [2,1,1]] 输出: 4 解释: 最长递增路径为 [1, 2, 6, 阅读全文
posted @ 2020-07-26 23:09 Smah 阅读(215) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #define NULL 2 /* run this program using the console pauser or add your own getch, system("pause") or input loo 阅读全文
posted @ 2020-07-23 01:02 Smah 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 记录下阅读的资料: (总结待续) 1.https://blog.csdn.net/weixin_39640298/article/details/84503428 2.https://docs.microsoft.com/en-us/cpp/preprocessor/once?view=vs-201 阅读全文
posted @ 2020-07-23 00:26 Smah 阅读(211) 评论(0) 推荐(0) 编辑
摘要: After the sleep interval has passed, the thread is ready to run. If you specify 0 milliseconds, the thread will relinquish the remainder of its time s 阅读全文
posted @ 2020-07-22 19:46 Smah 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 一、什么是内联函数 在C语言中,如果一些函数被频繁调用,不断地有函数入栈,即函数栈,会造成栈空间或栈内存的大量消耗。 为了解决这个问题,特别的引入了inline修饰符,表示为内联函数。 栈空间就是指放置程式的局部数据也就是函数内数据的内存空间,在系统下,栈空间是有限的,假如频繁大量的使用就会造成因栈 阅读全文
posted @ 2020-07-22 19:37 Smah 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 高位<==低位(例32<==0) 类型 符号位 指数位 尾数位 大小 float 1 8 23 32bit double 1 11 52 64bit 单精度例1: float b = 2.25; b的二进制表示:10.01 b的二进制科学计数法表示:1.001*2^1 符号位:0(1位) 指数位:1 阅读全文
posted @ 2020-07-22 17:44 Smah 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 打开:/etc/default/grub 搜索:#GRUB_GFXMODE=640x480 编辑:640x480改成你想要的分辨率,并取消前面的# 例如:GRUB_GFXMODE=1024x768 更新:sudo update-grub 阅读全文
posted @ 2020-07-20 14:04 Smah 阅读(440) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页