MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / releasePCB

Method releasePCB

lab8/src/1/src/kernel/program.cpp:143–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void ProgramManager::releasePCB(PCB *program)
144{
145 int index = ((int)program - (int)PCB_SET) / PCB_SIZE;
146 PCB_SET_STATUS[index] = false;
147}
148
149void ProgramManager::MESA_WakeUp(PCB *program) {
150 program->status = ProgramStatus::READY;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected