kernel: test: adjust tick-tock multithreading test timing

This commit is contained in:
2023-05-07 12:38:06 +01:00
parent 36834c26b8
commit bd26039102

View File

@@ -22,9 +22,11 @@ void print_kernel_banner(void)
void background_thread(void)
{
printk("background_thread() running on processor %u", this_cpu());
milli_sleep(500);
while (1) {
milli_sleep(500);
printk("tock");
milli_sleep(1000);
}
}
@@ -50,7 +52,7 @@ void kernel_init(uintptr_t arg)
create_kernel_thread(background_thread);
while (1) {
milli_sleep(1000);
printk("tick");
milli_sleep(1000);
}
}