08 2022 档案
摘要:从网上找到hashmap截取大部分代码后运行发现一堆小问题,自己整理相关内容,进行测试显示,具体如下 此处根据实际情况会自行扩展内存,原理和java的hashmap很相似 #ifndef __PRIVATE_HASH_MAP_H__ #define __PRIVATE_HASH_MAP_H__ #i
阅读全文
摘要:查看ip ip address 设置apt 源 (129条消息) linux下 apt的添加下载源_爱吃曲奇的曲奇的博客-CSDN博客_linux添加apt源 gedit /etc/apt/sources.list 中科大源deb https://mirrors.ustc.edu.cn/ubuntu
阅读全文
摘要:linux 多进程通讯 clpsz/linux-ipcs: Linux进程间通信(Inter-Process Communication)方式汇总 (github.com) 无名管道 pipe #include <stdio.h> #include <stdlib.h> #include <unis
阅读全文
摘要:参考 (128条消息) linux下串口的阻塞和非阻塞操作_wuhengwudi的博客-CSDN博客_linux 阻塞 非阻塞 稍作修改 阻塞 非阻塞 #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string
阅读全文
摘要:T507 UBOOT 打印 tick_printf("func:%s \t line:%d\n", __func__,__LINE__); tick_printf("func:%s \t line:%d \tval:%d\n", __func__,__LINE__,val); #include <s
阅读全文
摘要:/*t01_testthread.cpp*/ #include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<pthread.h> /* 看到这里可能会有点疑问,为何除了条件变量还需要一个互斥对象呢?等待时为什么需要条件变量和互斥对象
阅读全文