1 | #include <pthread.h> |
---|---|
2 | #include <stdio.h> |
3 | #include <stdlib.h> |
4 | |
5 | void *f1(void *p) { |
6 | printf(format: "hello\n"); |
7 | return NULL; |
8 | } |
9 | |
10 | int main (int argc, char const *argv[]) |
11 | { |
12 | pthread_t t1; |
13 | pthread_create(newthread: &t1, NULL, start_routine: f1, NULL); |
14 | |
15 | return 0; |
16 | } |
17 |