lkml.org 
[lkml]   [1999]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: spin_lock and linux philosophy question...
On Mon, 13 Sep 1999, Robert Dinse wrote:

> But that brings up a larger question of why there are spin locks at all?
>If a CPU can't be doing one thing because a particular resource is unavailable
>being used by another CPU, why isn't it then sent off to do something else?

Not always is possible to do that without losing performances and
without increasing the complexity of the code.

When it's possible just use spin_trylock.

Andrea


-
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:53    [W:0.043 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site