This commit is contained in:
Imbus 2025-08-20 09:48:47 +02:00
parent 53e51ca468
commit 88e523ca73

14
thread.c Normal file
View file

@ -0,0 +1,14 @@
#include <pthread.h>
#include <stdio.h>
void *worker(void *arg) {
printf("Hello from thread\n");
return NULL;
}
int main() {
pthread_t thread;
pthread_create(&thread, NULL, worker, NULL);
pthread_join(thread, NULL);
return 0;
}