随笔分类 -  C++

摘要:// 银行家算法.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;#define M 5/*进程数*/#define N 3/*资源数*/#define False ... 阅读全文
posted @ 2018-05-29 16:05 hunterxing 阅读(508) 评论(0) 推荐(0)
摘要://cpp文件#include "stdafx.h"void FCFS();//先到先服务调度算法void SJF();//短进程优先算法void printProc();//输出进程的计算结果struct process_type //进程结构{ int pid;... 阅读全文
posted @ 2018-04-26 20:50 hunterxing 阅读(1035) 评论(0) 推荐(0)