[lkml]   [2005]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: SMP syncronization on AMD processors (broken?)
    On Thu, 2005-10-06 at 17:05 +0400, Kirill Korotaev wrote:
    > Hello Linus, Andrew and others,
    > Please help with a not simple question about spin_lock/spin_unlock on
    > SMP archs. The question is whether concurrent spin_lock()'s should
    > acquire it in more or less "fair" fashinon or one of CPUs can starve any
    > arbitrary time while others do reacquire it in a loop.

    spinlocks are designed to not be fair. or rather are allowed to not be.
    If you want them to be fair on x86 you need at minimum to put a
    cpu_relax() in your busy loop...

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-10-06 15:21    [W:0.019 / U:6.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site