Re: Spinlocks on Uniprocessor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 19, 2007 at 11:08:08AM +0530, Mansha Linux wrote:
> Could  you please explain me why do we need the spinlocks on uniprocessor
> machines?

We don't, the spinlock macro code expands to nothing on a uniprocessor
configuration without preemption.

> Is this the only reason that the kernel is preemptive ?

Except with a preemptive kernel, there we need spinlocks.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux