4.4BSD

共 2 篇文章。

PRS_NEW: Check it or not?

Kernel

It seems that I have caught a race condition which can be triggered by renice(1), and we need to take PRS_NEW into account when we need to access several attributes of a process object.

Robert has pointed out that we may want to just initialize the attribute early to avoid the race condition. After reading some old 4.4BSD code it seems that the process object is linked into allproc list *before* everything is initialized.

阅读全文… ( 本文约 97 字,阅读大致需要 1 分钟 )