(本站为飞网专业下载站,域名:down.cfei.net)
                         
                        
                        
                            资源简介:
                            CPP程序#include "stdio.h"  #include   #include   #define getpch(type) (type*)malloc(sizeof(type))  #define NULL 0  struct pcb { /* 定义进程控制块PCB */  char name[10];  char state;  int super;  int ntime;  int rtime;  struct pcb* link;  }*ready=NULL,*p;  typedef struct pcb PCB;  sort() /* 建立对进程进行优先级排列函数*/  {  PCB *first, *second;  int insert=0;  if((ready==NULL)||((p->super)>(ready->super))) /*优先级最大者,插入队首*/  {  p->link=ready;  ready=p;  }  else /* 进程比较优先级,插入适当的位置中*/  {  first=ready;  s
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。