Date: Tue, 22 Jul 2003 19:11:07 -0700 (PDT) From: Daniel Eischen <deischen@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/thread thr_cancel.c thr_cond.c thr_detach.c thr_kern.c thr_mutex.c thr_private.h thr_resume_np.c thr_sig.c Message-ID: <200307230211.h6N2B8K9041918@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
deischen 2003/07/22 19:11:07 PDT FreeBSD src repository Modified files: lib/libpthread/thread thr_cancel.c thr_cond.c thr_detach.c thr_kern.c thr_mutex.c thr_private.h thr_resume_np.c thr_sig.c Log: Move idle kse wakeup to outside of regions where locks are held. This eliminates ping-ponging of locks, where the idle KSE wakes up only to find the lock it needs is being held. This gives little or no gain to M:N mode but greatly speeds up 1:1 mode. Reviewed & Tested by: davidxu Revision Changes Path 1.26 +6 -3 src/lib/libpthread/thread/thr_cancel.c 1.48 +8 -2 src/lib/libpthread/thread/thr_cond.c 1.23 +5 -3 src/lib/libpthread/thread/thr_detach.c 1.80 +57 -35 src/lib/libpthread/thread/thr_kern.c 1.39 +12 -6 src/lib/libpthread/thread/thr_mutex.c 1.94 +2 -2 src/lib/libpthread/thread/thr_private.h 1.18 +13 -5 src/lib/libpthread/thread/thr_resume_np.c 1.63 +27 -17 src/lib/libpthread/thread/thr_sig.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307230211.h6N2B8K9041918>