lkml.org 
[lkml]   [2000]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Slow pthread_create() under high load

On 29-Mar-00 Mike Castle wrote:
> On Tue, Mar 28, 2000 at 03:42:30PM -0800, Jeremy Fitzhardinge wrote:
>> Yes, but it needn't be as complex as putting locking everywhere. In
>> the
>> case where there was no shared credential change, the fast path is
>> still
>> pretty fast.
>
> Don't you still need to lock/make use of credential/unlock? Otherwise
> you
> have a race condition on SMP boxes.

If you use a generation counter, you wouldn't even need to take the lock
unless the creds had actually changed; you'd only get contention if
someone were actually updating the credentials at that instant.

J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.048 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site