Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Newsgroups | comp.arch |
| Subject | Re: Efficient lock free FIFO |
| Date | 2015-12-04 10:28 +0000 |
| Organization | Old Fogies Society |
| Message-ID | <n3rprp$37u$1@dont-email.me> (permalink) |
| References | <ec9545f0-93a8-4672-8f59-695eee864d30@googlegroups.com> <e7740fc3-617b-418f-bd8d-be7d1f474ac8@googlegroups.com> |
In article <e7740fc3-617b-418f-bd8d-be7d1f474ac8@googlegroups.com>, <already5chosen@yahoo.com> wrote: >On Friday, December 4, 2015 at 4:56:10 AM UTC+2, jacko wrote: >> >> So a head read is valid when the write completes, and the tail pointer >has not moved (indicates a tail write, overwriting the deletion from the >circular list), and the read element is not a duplicate (as the last >element can not be removed). >> >> So a tail write is valid, by virtue of cancelling any head read, by >overwrite. The process is to set up pointing to the head, moving the >tail pointer to add in (voiding a head read), but prevent removal before >completion, and then fix up the previously pointed to tail to point >circularly to the tail. > >I don't see ho such thing can be potentially useful. It's useful, and has been used since time immemorial. The main use of such techniques is with interrupt handling, where the key factor is to be able to detect an interrupted update and fix it up without causing other problems. As far as parallelism is concerned, what techniques work best is critically dependent on the potential conflict rate, and whether reads dominate updates. 99% of claimed wonderful techniques (both things like SMT or coherence protocols and lock-free algorithms or sychronisation mechanisms) are good only if your requirement their (usually well-hidden or even unstated) assumptions. Regards, Nick Maclaren.
Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 18:56 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:22 -0800
Re: Efficient lock free FIFO Ivan Godard <ivan@millcomputing.com> - 2015-12-03 19:32 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:36 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:40 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-03 21:46 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 00:12 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-04 13:59 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-04 14:06 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:36 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:40 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:53 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:36 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:39 -0800
Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-04 01:59 -0800
Re: Efficient lock free FIFO nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-04 10:28 +0000
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 07:08 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 17:55 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 17:59 -0800
Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-06 04:03 -0800
Re: Efficient lock free FIFO nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-06 12:43 +0000
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 06:56 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 07:04 -0800
Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-05 08:56 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:43 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:51 -0800
Re: Efficient lock free FIFO (Something ...?) jacko <jackokring@gmail.com> - 2015-12-06 07:08 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-06 11:58 -0800
Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-06 13:02 -0800
Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-06 13:37 -0800
csiph-web