华师操作系统实验一 - 进程调度的设计与实现实验报告 联系客服

发布时间 : 星期六 文章华师操作系统实验一 - 进程调度的设计与实现实验报告更新完毕开始阅读

华 南 师 范 大 学 实 验 报 告

学生姓名 卢伟柱 学 号 20112100175 专 业 网络工程 年级、班级 11级6班 课程名称 操作系统实验 实验项目 进程调度的设计与实现 实验类型 ?验证 ?设计 ?综合 实验时间 2013 年 5 月 27 日

实验指导老师 冯刚 实验评分

{

PCB pcb;

CString s1,s2,s3,s4; while(true) { }

pcb.setstatus(\ pcb.setpriority(rand()I); pcb.setlife(rand()%5+1); s1.Format(\ s2.Format(\

s3=\ q[pcb.getpriority()].push(pcb);

m_LIST.SetItemText(q[pcb.getpriority()].size()-1,pcb.getpriority(),s3); }

BOOL CMyScheduleDlg::PreTranslateMessage(MSG* pMsg) //设置快捷键 {

pcb.setpid(rand()0+1); if(!flag[pcb.getpid()]) { }

flag[pcb.getpid()]=true; break;

共 13 页 第 12 页

华 南 师 范 大 学 实 验 报 告

学生姓名 卢伟柱 学 号 20112100175 专 业 网络工程 年级、班级 11级6班 课程名称 操作系统实验 实验项目 进程调度的设计与实现 实验类型 ?验证 ?设计 ?综合 实验时间 2013 年 5 月 27 日

实验指导老师 冯刚 实验评分

// TODO: Add your specialized code here and/or call the base class UINT nKeyCode =pMsg->wParam; if(pMsg->message==WM_KEYDOWN) {

if(nKeyCode==_T('F')&&(::GetKeyState(VK_CONTROL)&0x8000))

OnButton1();

else {

if(nKeyCode==_T('S')&&(::GetKeyState(VK_CONTROL)&0x8000))

OnButton2();

else {

if(nKeyCode==_T('Q')&&(::GetKeyState(VK_CONTROL)&0x8000)) }

return CDialog::PreTranslateMessage(pMsg); }

}

}

OnButton3();

共 13 页 第 13 页