
操作系统
beckyUp
他强任他强,过题我在行
展开
-
【操作系统】进程调度
两种调度方式 优先权法 时间片轮转法 #include <bits/stdc++.h> using namespace std; int n; struct node { int cpu; int priority; int idx=0; bool operator<(const node &oth)const { ...原创 2019-05-07 13:49:45 · 202 阅读 · 0 评论 -
【操作系统】作业调度
采用先来先服务(FCFS),最短作业优先(SJF)、响应比高者优先(HRRN)的调度算法 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5+50; struct JCB { string name; int subtime; int runtime; int resour...原创 2019-05-08 09:24:44 · 1598 阅读 · 0 评论