⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 os.cpp

📁 操作系统的课程设计
💻 CPP
字号:
// Os.cpp: implementation of the Os class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Os.h"
#include "stdlib.h"
#include "time.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
class Os;
void program(Os *os)
{
	
	return;
}
Os::Os()
{	

}

//PCB的初始化
void Os::initPCB(PCB *pcb)
{	
	
}
//初始化PCB池为空闲链,其他链均为空
void Os::initOS()
{
	
}
//创建进程,崭时进程的唯一标识是ID,与name无直接关系
Status Os::CreateProcess(char *name)//参数可能不止一个
{

	return Ok;
}

//销毁进程
Status Os::DeleteProcess(int id)//参数可能不止一个
{
	return False;
}
Status Os::BlockProcess()
{
    return Ok;
}

Status Os::WakeupProcess()
{

    return Ok;
}
void Os::InsertIntoReady(PCB* pcb)
{
	
}
void Os::scheduler()
{

	return;
}
void Os::SetStrategy(int strate)
{

	return;
}
Os::~Os()
{

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -