Hello!
2014-05-07 5:02 GMT-07:00 姚尉:
>
> 请教一下,如果一个 light thread 变成 zombie, 那么这个 light thread 所占用的内存会释放掉吗,
会在下面两种情况下释放:
1. 其父 thread 终止时,
2. 或者其父 thread 为它调用 ngx.thread.wait() 时。
> ngx lua
> 会保存这个 zombie thread的哪些信息呢?
主要是这个 light thread 的返回值信息,以便其父亲通过 ngx.thread.wait() 获取。这和 UNIX 进程的
zombie 进程是比较类似的。
Regards,
-agentzh