Linux
xyxNJFU
这个作者很懒,什么都没留下…
展开
-
Linux 进程间通信
#include <stdio.h> #include <sys/types.h> #include <sys/msg.h> #include <sys/ipc.h> #define MSGKEY 75 /*定义关键词MEGKEY*/ struct msgform /*消息结构*/ ...原创 2018-06-27 15:19:32 · 156 阅读 · 0 评论 -
Linux
实验原理: 1.进程的创建程序如下: #include<stdio.h> main() { int p1,p2; while((p1=fork())==-1); if(p1==0) putchar('b'); else ...转载 2018-06-26 18:07:04 · 386 阅读 · 0 评论 -
linux(2)
实验原理: 1.消息的创建、发送和接收 #include<stdio.h> #include<sys/types.h> #include<sys/msg.h> #include<sys/ipc.h> #define MSGKEY 75 struct msgform ...原创 2018-06-26 17:43:40 · 388 阅读 · 0 评论 -
Linux(3)
#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define INVALID -1 #define NULL 0 #define total_instruction 320 /*指令流长*/ #define total_vp 32 ...原创 2018-06-26 17:15:51 · 199 阅读 · 0 评论