出错的代码行:

  pthread_t threads[NUM_THREADS];

原因:
NUM_THREADS 无值
原先:

#define NUM_THREADS

修改为

#define NUM_THREADS 5
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐