Unix1 pthreads programming- various functions of pthread API #include #include #include #include #include #include #include #define handle_error_en(en, msg)\ do { errno = en; perror(msg); exit(EXIT_FAILURE); } while(0) #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while(0) struct thread_info { /*Used as argument to thread_start() */ pthread_t thread_id; /* ID returned by pthread_create() */ int thread_num; /* Application-defined thre.. 2021. 8. 12. 이전 1 다음