操作系统进程调度

一:源程序:

#include "stdlib.h"

#include "stdio.h"

#include "conio.h"

struct jincheng_type

{

       int pid;

       int youxian;

       int daxiao;

};         //进程模拟。

struct jincheng_type jiuxu[20]; //就绪数组。

 

struct jincheng_type guaqi[20]; //挂起数组。

 

struct jincheng_type cpu;  //运行进程。

 

int NUM1=0,NUM2=0,first=0;

 

void create()

{

       if(NUM1>=20)

       {

              printf("\n就绪进程已满,请先删除或挂起进程\n");

       }

       else

[1] [2] [3] [4] [5] [6] [7] [8] 下一页

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有