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

Function first_thread

lab6/src/1/src/kernel/setup.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void first_thread(void *arg)
43{
44 // 第1个线程不可以返回
45 stdio.moveCursor(0);
46 for (int i = 0; i < 25 * 80; ++i)
47 {
48 stdio.print(' ');
49 }
50 stdio.moveCursor(0);
51
52 cheese_burger = 0;
53
54 programManager.executeThread(a_mother, nullptr, "second thread", 1);
55 programManager.executeThread(a_naughty_boy, nullptr, "third thread", 1);
56
57 asm_halt();
58}
59
60extern "C" void setup_kernel()
61{

Callers

nothing calls this directly

Calls 3

moveCursorMethod · 0.45
printMethod · 0.45
executeThreadMethod · 0.45

Tested by

no test coverage detected