pcb.h
来自「处理机调度」· C头文件 代码 · 共 39 行
H
39 行
#ifndef PCB_H
#define PCB_H
#define STA_READY 0
#define STA_RUN 1
#define STA_END 2
struct PCBNode
{
char processName[20];
int processID;
int remainSecs;
int priorityNum;
int staturs;
struct PCBNode* next;
};
typedef struct PCBNode* PCBList;
typedef struct PCBNode* ptrPCBNode;
struct Process
{
char processName[20];
int processID;
int staturs;
int priorityNum;
int remainSecs;
struct Process* next;
};
typedef struct Process* ptrProcess;
/*attern:this algorithm only has effets while the pcbList with an empty head*/
void sortPCB(PCBList inPCBList);
//PCBList createPCB(FILE* inputFile);
void updatePCBList(PCBList pcbList,ptrProcess runProcess);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?