文件名称:danchuliji
-
所属分类:
- 标签属性:
- 上传时间:2014-05-31
-
文件大小:1.33kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
单处理机系统的进程调度
//用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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.