文件名称:danchuliji
介绍说明--下载内容均来自于网络,请自行研究使用
单处理机系统的进程调度
//用running表示进程处于运行态
#define aready 2
//用aready表示进程处于就绪态
#define blocking 3
//用blocking表示进程处于等待态
#define sometime 5 //用sometime 表示时间片大小
#define n 10 //假定系统允许进程个数为n
struct
{
int name //进程标识符
int status //进程状态
int ax,bx,cx,dx //进程现场信息,通用寄存器内容
int pc //进程现场信息,程序计数器内容
int psw //进程现场信息,程序状态字寄存器内容
int next //下一个进程控制块的位置
}pcbarea[n] //模拟进程控制块区域的数组
int PSW,AX,BX,CX,DX,PC,TIME //模拟寄存器
-//Indicates that the process is running with the running state# define aready 2// by aready means that the process is in the ready state# define blocking 3// by blocking means that the process is in a wait state# define sometime 5// use sometime said time slice size# define n 10// assume that the system allows the process number is n struct {int name // process identifier int status // process status int ax, bx, cx, dx // process the scene information, general register int pc // process the scene information, the program counter int psw // process the scene information, program status word register contents int next // Process Control position next block} pcbarea [n] // int array of analog process control block area PSW, AX, BX, CX, DX, PC, TIME // Analog register
//用running表示进程处于运行态
#define aready 2
//用aready表示进程处于就绪态
#define blocking 3
//用blocking表示进程处于等待态
#define sometime 5 //用sometime 表示时间片大小
#define n 10 //假定系统允许进程个数为n
struct
{
int name //进程标识符
int status //进程状态
int ax,bx,cx,dx //进程现场信息,通用寄存器内容
int pc //进程现场信息,程序计数器内容
int psw //进程现场信息,程序状态字寄存器内容
int next //下一个进程控制块的位置
}pcbarea[n] //模拟进程控制块区域的数组
int PSW,AX,BX,CX,DX,PC,TIME //模拟寄存器
-//Indicates that the process is running with the running state# define aready 2// by aready means that the process is in the ready state# define blocking 3// by blocking means that the process is in a wait state# define sometime 5// use sometime said time slice size# define n 10// assume that the system allows the process number is n struct {int name // process identifier int status // process status int ax, bx, cx, dx // process the scene information, general register int pc // process the scene information, the program counter int psw // process the scene information, program status word register contents int next // Process Control position next block} pcbarea [n] // int array of analog process control block area PSW, AX, BX, CX, DX, PC, TIME // Analog register
(系统自动生成,下载前可以参看下载内容)
下载文件列表
danchuliji.cpp