lkml.org 
[lkml]   [2010]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 0/6][RFC] futex: FUTEX_LOCK with optional adaptive spinning
From
Date
On Tue, 2010-04-06 at 16:41 +0300, Avi Kivity wrote:
> On 04/06/2010 04:35 PM, Peter Zijlstra wrote:
> > On Tue, 2010-04-06 at 16:28 +0300, Avi Kivity wrote:
> >
> >> Yes, but that's the best case for spinning. You could simply use a
> >> userspace spinlock in this case.
> >>
> > Userspace spinlocks are evil.. they should _never_ be used.
> >
>
> But in this case they're fastest. If we don't provide a non-evil
> alternative, people will use them.
>

That's what FUTEX_LOCK is about.



\
 
 \ /
  Last update: 2010-04-06 16:11    [W:0.171 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site