进程间通信(💥IPC 对象)


进程间通信(💥IPC 对象) 共享内存 直接读写”内核的内存“,它是效率最高的进程间通信方式

进程、信号灯、共享内存等内容的例子


#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <signal.h> #include <sys/ipc.h> #include