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

Function first_thread

lab6/src/2/src/kernel/setup.cpp:50–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void first_thread(void *arg)
51{
52 // 第1个线程不可以返回
53 stdio.moveCursor(0);
54 for (int i = 0; i < 25 * 80; ++i)
55 {
56 stdio.print(' ');
57 }
58 stdio.moveCursor(0);
59
60 cheese_burger = 0;
61 aLock.initialize();
62
63 programManager.executeThread(a_mother, nullptr, "second thread", 1);
64 programManager.executeThread(a_naughty_boy, nullptr, "third thread", 1);
65
66 asm_halt();
67}
68
69extern "C" void setup_kernel()
70{

Callers

nothing calls this directly

Calls 4

moveCursorMethod · 0.45
printMethod · 0.45
initializeMethod · 0.45
executeThreadMethod · 0.45

Tested by

no test coverage detected