git: kernel - Fix an inefficiency in wait*()

看板DFBSD_commit作者時間15年前 (2011/01/14 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit ce19c8fecac42ac0b6a72ade87299cb5c265732f Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Jan 13 18:44:22 2011 -0800 kernel - Fix an inefficiency in wait*() * The exit code was not taking into account the fact that a parent process might race an exiting child, causing a tsleep(... "lwpzomb", hz) to delay an entire second. Issue the proper wakeup in all cases where p->p_nthreads drops to 1 or 0. * Improves buildworld performance a little. Summary of changes: sys/kern/kern_exit.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ce19c8fecac42ac0b6a72ade87299cb5c265732f -- DragonFly BSD source repository
文章代碼(AID): #1DBxnpkE (DFBSD_commit)