进程模拟代码.docVIP

  • 5
  • 0
  • 约9.43万字
  • 约 8页
  • 2016-09-26 发布于河南
  • 举报
进程模拟代码

#ifndef BASIC_H_INCLUDED #define BASIC_H_INCLUDED #includestdio.h #includestring.h #includestdlib.h #define basic_h char *errormsg[256]; //process control block struct pcb { int pid;//process id int ppid;//parent process id int prio;//priority int state;//state int lasttime;//last execute time int tottime; //totle execute time }; //process node struct pnode { pcb *node; pnode *sub; pnode *brother; pnode *next; }; //信号量 struct semphore{ char name[5]; //名称 int count;//计数值 int curpid;//当前进程 id pnode *wlist; //等待链表 }; #define g

文档评论(0)

1亿VIP精品文档

相关文档