From: "Jeff V. Merkey" <jmerkey@devicelogics.com>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: kernel-stuff@comcast.net,
Imanpreet Singh Arora <imanpreet@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Question from Russells Spinlocks
Date: Thu, 09 Dec 2004 16:58:29 -0700 [thread overview]
Message-ID: <41B8E6A5.3090103@devicelogics.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0412092326260.2294@hermes-1.csi.cam.ac.uk>
Anton Altaparmakov wrote:
>
>
>Your last sentence is incorrect. Spinlocks on 1 CPU machines still need
>to disable preemption (assuming preemption is compiled in obviously, if
>not then indeed you are right). Otherwise preemption could take place in
>the middle of a data manipulation and you would still have the same race
>as you described with two cpus working concurrently. Except that with
>preemption it is only logical concurrence not actual physical concurrence.
>
>Best regards,
>
> Anton
>
>
>
Anton is correct in his analysis.
Jeff
next prev parent reply other threads:[~2004-12-09 23:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 21:15 kernel-stuff
2004-12-09 21:49 ` Robert Love
2004-12-10 2:04 ` Parag Warudkar
2004-12-09 23:30 ` Anton Altaparmakov
2004-12-09 23:58 ` Jeff V. Merkey [this message]
2004-12-10 2:02 ` Parag Warudkar
-- strict thread matches above, loose matches on Subject: below --
2004-12-08 21:00 Imanpreet Singh Arora
2004-12-09 21:53 ` Brian Gerst
2004-12-09 22:03 ` William Lee Irwin III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41B8E6A5.3090103@devicelogics.com \
--to=jmerkey@devicelogics.com \
--cc=aia21@cam.ac.uk \
--cc=imanpreet@gmail.com \
--cc=kernel-stuff@comcast.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome