아래 코드는 런타임 에러가 발생합니다.
윈인은 pthread_attr_t *attr; 으로 보입니다.
위 선언을 pthread_attr_t attr;로 바꾼뒤..
각 아규먼드에 &attr로 바꿔 실행하면 이상없이 돌아갑니다.
한참 머가 잘못됬는지.. 헤맷습니다. ㅠㅠ...
이부분 무심코 코딩하단.. 몇시간 낭비하기 딱 좋은거 같습니다.
[code:1]
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
void *thread_function1(void *arg)