#include #include 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; }