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