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

Method initialize

lab7/src/4/src/kernel/program.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void ProgramManager::initialize()
19{
20 allPrograms.initialize();
21 readyPrograms.initialize();
22 running = nullptr;
23
24 for (int i = 0; i < MAX_PROGRAM_AMOUNT; ++i)
25 {
26 PCB_SET_STATUS[i] = false;
27 }
28}
29
30int ProgramManager::executeThread(ThreadFunction function, void *parameter, const char *name, int priority)
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected