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...
Robert Dinse wrote:
>
> On Mon, 13 Sep 1999, Momchil Velikov wrote:
> >
> > Spin locks are for cases when it is expected the lock to be held for
> > very short intervals, thus saving the sleep/wakeup overhead. For other
> > cases there are sleep locks (whatever they are called in each OS), where
> > indeed the CPU is sent to do something else.
> >
> > Regards,
> > -velco
>
> Thank you for the short explanation, and thank you David for the reference
> as I really do want to understand these things.

You can also use a spinlock in an interrupt handler, where you can't sleep at
all.

Regards,
-velco

-
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.107 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site