| 37 | } |
| 38 | |
| 39 | void thread_func_b(void* arg) { |
| 40 | uint64_t id = (uint64_t)arg; |
| 41 | for (int i = 0; i < 5; ++i) { |
| 42 | klog::Info("Thread B: running, arg={}, iter={}", id, i); |
| 43 | g_task_b_counter++; |
| 44 | (void)sys_sleep(50); |
| 45 | } |
| 46 | klog::Info("Thread B: exit"); |
| 47 | sys_exit(0); |
| 48 | } |
| 49 | } // namespace |
| 50 | |
| 51 | auto kernel_task_test() -> bool { |