-
大小: 2.17MB文件類型: .rar金幣: 2下載: 1 次發(fā)布日期: 2023-10-30
- 語言: C/C++
- 標(biāo)簽: OS課設(shè)??進(jìn)程調(diào)度??作業(yè)調(diào)度??VC++??6.0??
資源簡介
OS課設(shè) 進(jìn)程調(diào)度 作業(yè)調(diào)度 VC++ 6.0 實(shí)現(xiàn) 帶文檔
還有計算周轉(zhuǎn)時間

代碼片段和文件信息
//?Job.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Job.h“
#include?“JobDlg.h“
//#include?“l(fā)inkQueue.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CJobApp
BEGIN_MESSAGE_MAP(CJobApp?CWinApp)
//{{AFX_MSG_MAP(CJobApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CJobApp?construction
CJobApp::CJobApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CJobApp?object
CJobApp?theApp;
Clinkqueue?MemoryQueue;????//內(nèi)存隊列
Clinkqueue?WaitQueue;?????//后備隊列
/////////////////////////////////////////////////////////////////////////////
//?CJobApp?initialization
BOOL?CJobApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CJobDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????122976??2010-12-27?15:36??Job\Debug\Job.exe
?????文件?????244432??2010-12-27?15:36??Job\Debug\Job.ilk
?????文件??????19901??2010-12-27?15:36??Job\Debug\Job.obj
?????文件????5567088??2010-12-27?15:27??Job\Debug\Job.pch
?????文件?????451584??2010-12-27?15:36??Job\Debug\Job.pdb
?????文件???????4048??2008-12-02?22:31??Job\Debug\Job.res
?????文件??????59275??2010-12-27?15:27??Job\Debug\JobDlg.obj
?????文件??????29759??2010-12-27?15:27??Job\Debug\li
?????文件?????105831??2010-12-27?15:27??Job\Debug\StdAfx.obj
?????文件?????214016??2010-12-31?10:00??Job\Debug\vc60.idb
?????文件?????372736??2010-12-27?15:36??Job\Debug\vc60.pdb
?????文件??????23488??2010-12-27?15:36??Job\Job.aps
?????文件???????2499??2010-12-31?10:32??Job\Job.clw
?????文件???????2120??2008-11-14?00:42??Job\Job.cpp
?????文件???????4232??2008-11-11?15:23??Job\Job.dsp
?????文件????????512??2008-11-08?23:34??Job\Job.dsw
?????文件???????1291??2008-11-08?23:34??Job\Job.h
?????文件?????132096??2010-12-31?10:32??Job\Job.ncb
?????文件??????51712??2010-12-31?10:32??Job\Job.opt
?????文件????????240??2010-12-31?10:00??Job\Job.plg
?????文件???????8193??2008-12-02?22:31??Job\Job.rc
?????文件??????15219??2008-11-30?21:49??Job\JobDlg.cpp
?????文件???????1904??2008-11-30?21:14??Job\JobDlg.h
?????文件???????6623??2008-12-03?13:49??Job\li
?????文件???????1248??2008-11-30?19:46??Job\li
?????文件???????3525??2008-11-08?23:34??Job\ReadMe.txt
?????文件???????1078??2008-11-08?23:34??Job\res\Job.ico
?????文件????????395??2008-11-08?23:34??Job\res\Job.rc2
?????文件???????1555??2008-11-30?21:17??Job\resource.h
?????文件????????205??2008-11-08?23:34??Job\StdAfx.cpp
............此處省略9個文件信息
評論
共有 條評論