9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Douglas A. Gwyn" <DAGwyn@null.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cooperative threads
Date: Mon, 21 Aug 2000 08:59:32 +0000	[thread overview]
Message-ID: <399F246E.251B1062@null.net> (raw)
In-Reply-To: <20000819083447.J4695@cackle.proxima.alt.za>

Lucio De Re wrote:
> It is quite amusing to recollect Edsger Dijkstra's horror when asked
> to program a very early pre-emptive computer.  He is reported to have
> needed serious convincing before he accepted the principle of
> _interrupts_ :-)

With good reason.  In the early days, before people like Dijkstra
and Hoare had developed reasonable models for concurrency, it was
hard to control the concurrency in preemptive (interrupt)
environments.  For example, the CDC 1700 operating system had
several forms of I/O, the one necessary for double-buffering
involving a "completion routine" that would be invoked when the
I/O request had been satisfied.  It was possible to write correct
applications under such a scheme, but it was much easier to write
ones with race conditions etc.

I think threads are popular for two main reasons:
(1) They are an easy way to exploit multiple processing units.
(2) They are much lighter weight than communicating full processes.


  reply	other threads:[~2000-08-21  8:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-18 22:06 Russ Cox
2000-08-18 22:56 ` Boyd Roberts
2000-08-19  6:34 ` Lucio De Re
2000-08-21  8:59   ` Douglas A. Gwyn [this message]
2000-08-21 13:01 rob pike

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=399F246E.251B1062@null.net \
    --to=dagwyn@null.net \
    --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).