Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 12:12:25 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/conf options src/sys/kern kern_mutex.c
Message-ID:  <200404061912.i36JCP1m036228@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2004/04/06 12:12:25 PDT

  FreeBSD src repository

  Modified files:
    sys/conf             options 
    sys/kern             kern_mutex.c 
  Log:
  Add a new kernel option MUTEX_WAKE_ALL that changes the mutex unlock code
  to awaken all waiters when a contested mutex is released instead of just
  the highest priority waiter.  If the various threads are awakened in
  sequence then each thread may acquire and release the lock in question
  without contention resulting in fewer expensive unlock and lock
  operations.  This old behavior of waking just the highest priority is
  still used if this option is specified.  Making the algorithm conditional
  on a kernel option will allows us to benchmark both cases later and
  determine which one should be used by default.
  
  Requested by:   tanimura-san
  
  Revision  Changes    Path
  1.439     +1 -0      src/sys/conf/options
  1.138     +10 -0     src/sys/kern/kern_mutex.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404061912.i36JCP1m036228>