blob: 01ab836564fdbc0514270b36340adf08939ac934 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <grapes/syscall.h>
void thread2(void* d) {
while (1) {
thread_sleep(1400);
printk("$");
}
}
int main() {
printk("[module:test] Hi world !\n");
printk("[module:test] Creating new thread...\n");
thread_new(thread2, 0);
while (1) {
thread_sleep(2000);
printk(".");
}
return 0;
}
|