Re: Spinlocks under uniprocessor running non preemptible kernel



MAx <mahesh1280@xxxxxxxxx> writes:
On Sep 21, 2:38 pm, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:

[ spin locks ]

Does that mean spinlocks do not do the job they are meant to do on a
uniprocessor system with linux 2.4.x(non-preemptible kernel)

Spin locks are not supposed to do anything on an uniprocessor. I have
already written that.

.



Relevant Pages

  • Re: spin locks
    ... Excerpt from O'Reilly's "Understanding The Linux Kernel, ... a semaphore could be very inefficient. ... time it takes to complete them, the other kernel control path could have ... multiprocessor operating systems use spin locks. ...
    (alt.os.linux)
  • Re: Spinlocks under uniprocessor running non preemptible kernel
    ... The job they are "meant to do" only applies to multiprocessor systems. ... Spinlocks simply don't make sense on a uniprocessor system. ... okay to run a multiprocessor kernel on a uniprocessor system, ... There are a few cases where a spinlock would hang a non-preemptible ...
    (comp.os.linux.development.system)
  • Re: Lock or semaphore, difference?
    ... ma le dut cu m> wrote: ... you rightly pointed out, one is process wide only, the other is a kernel ... the underlying implementation is very differet - think ... spin locks. ...
    (microsoft.public.dotnet.framework)
  • Possible bug from kernel 2.6.22 and above
    ... We have a simple pthread program that measures the synchronization overheads for various synchronization mechanisms such as spin locks, barriers and so on. ... We have dual quad-core AMD opterons clusters running 2.6.23.8 kernel at this moment using Fedora Core 7 distribution. ... But the synchronization overhead actually decreases as the number of threads increases in the kernel 2.6.23.8. ...
    (Linux-Kernel)
  • Re: use of spinlocks
    ... > I wanted to know how kernel manages resources for multiprocessors. ... > far I know spin locks are used, ...
    (comp.os.linux.development.system)