Commit | Line | Data |
---|---|---|
1 | #include <stdio.h> | |
2 | #include <pthread.h> | |
3 | ||
4 | void *go(void *args) { | |
5 | while(1) { | |
6 | puts("lol!"); | |
7 | } | |
8 | } | |
9 | ||
10 | int main() { | |
11 | pthread_t t; | |
12 | //pthread_create(&t, NULL, go, NULL); | |
13 | pthread_create(&t, NULL, puts, "hello!"); | |
14 | sleep(1); | |
15 | } |