📄 pcb.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -