#include #include void *run_thread(void * arg) { while (1) { puts("Hello from the other thread!!"); } return NULL; } int main (void) { pthread_t thread_id; int ret = pthread_create(&thread_id, NULL, run_thread, NULL); if (ret != 0) { fprintf(stderr, "Could not create thread\n"); return 1; } while(1) { puts("Hello from the main!"); } return 0; }