Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
Subject: Re: [ patch ] async stuff fix(?) (was Re: 0.3 and async pre-fetch)
Date: 06 Aug 1996 22:51:18 +0200	[thread overview]
Message-ID: <x6g260z16g.fsf@eyesore.no> (raw)
In-Reply-To: Sudish Joseph's message of 06 Aug 1996 02:08:16 -0400


Sudish Joseph <sudish@mindspring.com> writes:

> There's only one shared variable: the queue tracking group/article
> pairs.  This variable has nice properties that make it easy to share.
> 
> a) It's a strict producer-consumer buffer with the very useful
> property of being unbounded (we look at a finite subset of the buffer
> at any given time, but that subset moves monotonically along the
> unbounded buffer).  This means that the thornier of the two issues
> requiring a lock in P-C problems is eliminated: we never have to check
> for overflow.  This leaves underflow.
> 
> b) The producer (gnus-async-prefetch-article) always stays a fixed
> number of items ahead of the consumer (*).  More importantly, the
> producer stops producing at a point when gnus-use-article-prefetch
> items are still left in the buffer.  So, underflow is trivially
> testable in the consumer w/o needing a lock.

Well, but all this isn't really an issue -- we don't have a general
producer/consumer situation.  We instead have an, uhm, link of actions
-- fetch, wait, fetch, wait, etc.  Sort of.  So you seem to be adding
complexity to a situation I thought was rather simple...

-- 
  "Yes.  The journey through the human heart 
     would have to wait until some other time."


  reply	other threads:[~1996-08-06 20:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-01 23:41 0.3 and async pre-fetch Sudish Joseph
1996-08-02  1:31 ` 0.3 and async pre-fetch (and YA bug report) Raja R Harinath
1996-08-02 17:35 ` 0.3 and async pre-fetch Lars Magne Ingebrigtsen
1996-08-03  0:35   ` Sudish Joseph
1996-08-04 22:09     ` [ patch ] async stuff fix(?) (was Re: 0.3 and async pre-fetch) Sudish Joseph
1996-08-05  0:39       ` Sudish Joseph
1996-08-05 17:11       ` Lars Magne Ingebrigtsen
1996-08-06  6:08         ` Sudish Joseph
1996-08-06 20:51           ` Lars Magne Ingebrigtsen [this message]
1996-08-05 18:20       ` Ken Raeburn
1996-08-05 17:00     ` 0.3 and async pre-fetch Lars Magne Ingebrigtsen

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=x6g260z16g.fsf@eyesore.no \
    --to=larsi@ifi.uio.no \
    /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;
as well as URLs for NNTP newsgroup(s).