?? rr.m
字號(hào):
function [newP,QReady,rmTime,curstartFlag]=RR(QReady,Qlen)
%It is SURE that there are processes in the queue now. now just to choose one
%The order is not important, so we can sort the queue first,then pick the
%first one.
%But be CAREFUL if not full queue, should rule out the 0
%NOTE: newP is not newp!!!!!!!!!!!!
newP=-1; % if newp is -1 when return, we can find some problem because we can not access TB(-1)!!
%Just pick up the first p,like FCFS
[QReady,newP,rmTime,curstartFlag]=OutQueue3QReady(QReady,Qlen,0,'R');
if newP<=0
fprintf('Not good! newP=%d\n',newP);
return;
end
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -