www.pudn.com > os.rar > TimeSlice.h


#ifndef TimeSlice_H 
#define TimeSlice_H 
 
 
#include "LinkQueue.h" 
class TimeSlice 
{ 
private: 
 
public: 
	void RoundRobin(LinkQueue& Q,const int Round, int& totalTimeSum, int& weightTotalTimeSum,PCBNode * ProcessTable); 
	bool RR_Run(LinkQueue& Q,QueueNode* q, QueueNode* p, const int Round,int& currentTime,PCBNode * ProcessTable);//分配时间片给q所指进程,p为刚退出的进程 
 
 
}; 
 
#endif