Re: An idea of remove MUTEX_WAKE_ALL

2006-01-03 Thread Scott Long
Daniel Eischen wrote: On Tue, 3 Jan 2006, Scott Long wrote: for a bit if the current lock owner is running on another CPU? Do we currently do that? (*) No, I am not referring to spin mutexes. Adaptive mutexes are enabled by default and have been for at least a year. Ahh, then that's wh

Re: An idea of remove MUTEX_WAKE_ALL

2006-01-03 Thread Daniel Eischen
On Tue, 3 Jan 2006, Scott Long wrote: > > for a bit if the current lock owner is running on another CPU? > > Do we currently do that? > > > > (*) No, I am not referring to spin mutexes. > > > > Adaptive mutexes are enabled by default and have been for at least a > year. Ahh, then that's what they

Re: An idea of remove MUTEX_WAKE_ALL

2006-01-03 Thread Scott Long
Daniel Eischen wrote: On Tue, 3 Jan 2006, John Baldwin wrote: On Sunday 01 January 2006 02:21 am, prime wrote: Hi hackers, I have an idea about remove the kernel option MUTEX_WAKE_ALL. When we unlock the mutex(in _mtx_unlock_sleep),we can directly give the lock to the first thread waiti

Re: An idea of remove MUTEX_WAKE_ALL

2006-01-03 Thread Daniel Eischen
On Tue, 3 Jan 2006, John Baldwin wrote: > On Sunday 01 January 2006 02:21 am, prime wrote: > > Hi hackers, > >I have an idea about remove the kernel option MUTEX_WAKE_ALL. > >When we unlock the mutex(in _mtx_unlock_sleep),we can directly > > give the lock to the first thread waiting on the

Re: An idea of remove MUTEX_WAKE_ALL

2006-01-03 Thread John Baldwin
On Sunday 01 January 2006 02:21 am, prime wrote: > Hi hackers, >I have an idea about remove the kernel option MUTEX_WAKE_ALL. >When we unlock the mutex(in _mtx_unlock_sleep),we can directly > give the lock to the first thread waiting on the turnstile.And a > thread gets the mutex after he r

An idea of remove MUTEX_WAKE_ALL

2005-12-31 Thread prime
Hi hackers, I have an idea about remove the kernel option MUTEX_WAKE_ALL. When we unlock the mutex(in _mtx_unlock_sleep),we can directly give the lock to the first thread waiting on the turnstile.And a thread gets the mutex after he returned from turnstile_wait so he can simply jump out the _