使用mmap函数实现两个进程间读写通信

目的 有一个进程负责写内容到mmap映射的一块缓存区中,另一个进程负责将这些内容读取出来。 测试源码 1、mmap_r_ipc.c源码 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/mman.h> #include
相关文章
相关标签/搜索