lkml.org 
[lkml]   [2004]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: spin_lock() and smp/multicall logic
john moser wrote:

> As always, CC all replies back to me.
>
> I'm looking at include/linux/spinlock.h and I'm incredibly confused on something.

Buggy implementation of run_once deleted

> SO the two questions I'd like to address here are:
>
> 1) What is the purpose of spin_lock()
> 2) Am I the first person to come up with this method of non-parallel execution
> guarentee?

You invented an unsafe version of monitor using spin-locks.
Go read a on SMP operating systems.

"UNIX(R) Systems for Modern Architectures: Symmetric Multiprocessing and
Caching for Kernel Programmers"




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

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