請(qǐng)教:
昨天面一道題問(wèn)僵尸進(jìn)程是否會(huì)造成內(nèi)存泄露?
有文談到“在每個(gè)進(jìn)程退出的時(shí)候,內(nèi)核釋放該進(jìn)程所有的資源,包括打開(kāi)的文件,占用的內(nèi)存等。但是仍然為其保留一定的信息(包括進(jìn)程號(hào)the process ID,退出狀態(tài)the termination status of the process,運(yùn)行時(shí)間the amount of CPU time taken by the process等)。直到父進(jìn)程通過(guò)wait / waitpid來(lái)取時(shí)才釋放。”