上一页 1 2 3 4 5 6 ··· 37 下一页
摘要: 概括 打开消息队列 关闭消息队列 进程终止对消息队列的影响 删除消息队列 描述符和消息队列之间的关系 消息队列的特性 获取消息队列特性 修改消息队列特性 交换消息 发送消息 接受消息 消息通知 阅读全文
posted @ 2024-04-02 15:49 starc再起航 阅读(2) 评论(0) 推荐(0) 编辑
摘要: IPC机制介绍 接口总结 比较 POSIX IPC API 创建open 创建打开IPC对象 消息队列展示在文件系统 IPC名字限制 删除和关闭IPC对象 阅读全文
posted @ 2024-04-02 14:32 starc再起航 阅读(4) 评论(0) 推荐(0) 编辑
摘要: shmget() 参数shmflag shmat() shmflag shmdt 内存分布情况 内存段中使用指针 shmctl 加锁和解锁共享内存 共享内存关联数据结构 共享内存的限制 阅读全文
posted @ 2024-04-01 10:52 starc再起航 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 示例一 #include <stdio.h> #include <string.h> #include <stdlib.h> // 定义子系统A typedef struct subsystemA { void (*operationA)(struct subsystemA* subsystem); 阅读全文
posted @ 2024-03-28 17:28 starc再起航 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> // 定义业务处理者抽象类 typedef struct Handler { struct Handler* nextHandler; void (*handleRequest)(s 阅读全文
posted @ 2024-03-28 16:56 starc再起航 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 静态结构体数组式构建 链表式构建 链接式构建 #include <stdio.h> #include <stdlib.h> #include <string.h> // 加 double fun_add(double data_front, double data_back) { return da 阅读全文
posted @ 2024-03-28 16:19 starc再起航 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Interface_t { /*初始化外设USB、SPI、IIC等*/ void (*init_peripheral)(void *obj); /*初始 阅读全文
posted @ 2024-03-28 15:39 starc再起航 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> // 定义抽象接口 typedef struct interface_t { struct interface_t *(*clone)(void *obj); void (*set) 阅读全文
posted @ 2024-03-28 15:03 starc再起航 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. linux中内核空间及用户空间的区别?用户空间与内核通信方式有哪些? Linux简化了分段机制,使得虚拟地址与线性地址总是一致,因此,Linux的虚拟地址空间也为0~4G.Linux内核将这4G字节的空间分为两部分。将最高的1G字节(从虚拟地址0xC0000000到0xFFFFFFFF),供内 阅读全文
posted @ 2024-03-26 14:25 starc再起航 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <assert.h> #include <stdlib.h> typedef struct _singleton_t { int data; }singleton_t; /* 全局静态指针(指向唯一实例) */ static singleton 阅读全文
posted @ 2024-03-20 11:20 starc再起航 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 37 下一页