?? timecycle.h
字號:
// TimeCycle.h: interface for the TimeCycle class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TIMECYCLE_H__35C48369_6AE4_49FA_AE22_B5D5FADA52D6__INCLUDED_)
#define AFX_TIMECYCLE_H__35C48369_6AE4_49FA_AE22_B5D5FADA52D6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"Process.h"
#include <cstdio>
#include<iostream>
#include<list>
#include<map>
using namespace std;
#define INTPMAP map<int,Process*>
class TimeCycle
{
public:
void Help();
void ShowInfo();
void Dispatch();
void TimeOut();
void SysManualRun();
void Create(); //create process
void Kill(int pid);//kill the process
void Block();//block the process
void Wakeup(); //wake up the process
void Suspended();//suspend the process
void Active(); //active process
TimeCycle();
virtual ~TimeCycle();
private:
map<int,Process*> w_promap;
int w_running;
list<int> readyq;
list<int> blockedq;
};
#endif // !defined(AFX_TIMECYCLE_H__35C48369_6AE4_49FA_AE22_B5D5FADA52D6__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -