lkml.org 
[lkml]   [1999]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mutexs for synchronization between kernel threads?
From
Date
Johannes Erdfelt <jerdfelt@sventech.com> writes:
>
> I guess what I want are spinlocks, but the kernel spinlock
> implementation seems to be created for protecting across multiple CPU's,
> not across multiple context's of execution (thread's)

If you don't sleep in the critical region you don't need any locks
at all on UP (except against the interrupt). Linux uses cooperative
multitasking in the kernel.


-Andi
--
This is like TV. I don't like TV.

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