?? pcb.cpp
字號:
// PCB.cpp: implementation of the PCB class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ProcessManager.h"
#include "PCB.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
PCB::PCB(UINT prio, UINT ttime, UINT nid, CString strname)
{
ASSERT(prio<256);
ASSERT((ttime<400) && (ttime>10));
ASSERT(nid<256);
//initial
this->priority = prio;
this->total_time = ttime;
this->nid = nid;
this->strname = strname;
//other infomation
this->sleep_time = 0;
this->dynprio = 0;
this->current_time = 0;
this->state = PS_NOTHING; //新建進程都無狀態
this->next = this->prev = NULL;
this->wait_time = 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -