#include #include #define NULL 0 #define M 10 //pcb数组中的最大个数 typedef struct node { int id; //进程id号 int pr; //进程优先级 int ct; //进程已经运行时间片个数 int at; //进程还需多少运行时间片个数 int bt; //进程需要阻塞的时间片的个数 int sb; //进程运行多少时间片后进入阻塞 char state;//w(就绪),r(运行),f(完成),b(阻塞) str
Function Fafangcheng(canshu() As Double, P() As Double, ByVal m As Integer, N As Integer, L() As Double) Dim zhuanchengB() As Double Dim zhuanchengB1() As Double ReDim zhuanchengB(0 To N - 1, 0 To m - 1) ReDim zhuanchengB1(0 To N - 1, 0 To N - 1) Di