【发布时间】:2014-04-11 15:57:07
【问题描述】:
我想知道,如果我们在没有 pthread_join 的情况下执行 pthread_create 会发生什么?
谁将“清理”“未加入”线程的所有内存。
【问题讨论】:
-
看到这个问题,stackoverflow.com/questions/22798068/…。问题中的原始代码重复调用
pthread_create()而不执行连接。pthread_create()最终因内存不足而失败。
标签: c linux multithreading pthreads posix