9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Aki M Nyrhinen <anyrhine@cs.helsinki.fi>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] i say, this is interesting
Date: Fri, 27 Jun 2003 20:26:15 +0300	[thread overview]
Message-ID: <20030627172615.GA7666@cs.helsinki.fi> (raw)
In-Reply-To: <b9c3a1abd751181d5d1d547685bb5192@mightycheese.com>

On Fri, Jun 27, 2003 at 08:24:30AM -0700, rob pike, esq. wrote:
> > I don't want to make guesses why exactly every
> > second character is lost (other's know, for sure), but it
> > seems this isn't neccessarily a bug at all.
> oh, that's easy.  two processes reading the same file,
> each one byte at a time.  what would be the result of
> your kernel implementation under those circumstances?

An impossible to find non-deterministic malfunction in the future,
of course.

> ours just gates each process through the queue, and
> the result is alternate characters going to alternate
> processes.

Now that you said it, it's very obvious because the keyboard
gives characters one at a time.

Is there a reason why the plumber does not close(0)?

	-Aki



  reply	other threads:[~2003-06-27 17:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-27 13:21 Sam
2003-06-27 15:13 ` Aki M Nyrhinen
2003-06-27 15:24   ` rob pike, esq.
2003-06-27 17:26     ` Aki M Nyrhinen [this message]
2003-06-27 17:47       ` rob pike, esq.
2003-06-27 15:22 ` rob pike, esq.
2003-06-27 15:11   ` Sam

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=20030627172615.GA7666@cs.helsinki.fi \
    --to=anyrhine@cs.helsinki.fi \
    --cc=9fans@cse.psu.edu \
    /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).