- 4
- 0
- 约7.18千字
- 约 7页
- 2017-12-28 发布于河南
- 举报
操作系统进程调度-报告
操作系统进程调度-报告
一:源程序:
#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
?????? {
????????????? if(first==0)
????????????? {
???????????????????? printf(\n这是你第一次输入进程信息,它将直接调入CPU运行!);
???????????????????? printf(\n请输入新进程的pid\n);
?????????????????
原创力文档

文档评论(0)