Messages in this thread | | | Date | Thu, 08 Jan 2004 20:50:54 -0800 | From | Stephen Hemminger <> | Subject | Re: 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/
| |