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

Reply via email to