出錯的代碼行:
pthread_t threads[NUM_THREADS];
原因: NUM_THREADS 無值 原先:
NUM_THREADS
#define NUM_THREADS
修改爲
#define NUM_THREADS 5