9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Sape Mullender <sape@plan9.bell-labs.com>
To: 9fans@9fans.net
Subject: Re: [9fans] current state of thread programming
Date: Wed, 30 Jul 2008 14:58:48 -0400	[thread overview]
Message-ID: <d6208458d6551cb798595b8eff1a20a5@plan9.bell-labs.com> (raw)
In-Reply-To: <20080730173156.GA484@polynum.com>

>> i don't see how csp is *not* parallel processing.  as soon
>> as you have more than 1 work process per client, i would call
>> that parallel processing.
>
> It's a kind of parallelism, of course. But since it makes sense, it is
> not "parallelism" as the trend is today ;)

I don't know what the trend is today.  If the trend is defined by what
Linux does then I'm not very curious.


The point of the Plan 9 thread library was — and still is, as far
as I'm concerned — to be a tool that aids in concurrent programming.
I'm explicitly not saying parallel programming.  I think of
parallel programming as a technique for finishing some algorithm faster.
I think of concurrent programming as a way of keeping indeterminism
under control.  A file server serves many customers simultaneously,
and must expect requests, disk events, etc. to happen in any order.

Managing this is what Plan 9 threaded programs are good at.
And our model of using channels for interthread and interprocess
communication, while using a thread pool (all in one proc) for managing
shared data without needing locks, is the best programming model for
these kinds of programs I've ever come across.

You can write parallel programs using the thread library but that's not
what its primary purpose was and it's probably not going to help you
much.

	Sape




  reply	other threads:[~2008-07-30 18:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9b1933b61c606e89a4cbbc93a4b5a204@quanstro.net>
2008-07-30 17:31 ` tlaronde
2008-07-30 18:58   ` Sape Mullender [this message]
2008-07-30 20:04     ` tlaronde
2008-08-05 10:34 Richard Maxwell Underwood
2008-08-05 15:28 ` Eris Discordia
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30 12:50 erik quanstrom
2008-07-28 17:11 andrey mirtchovski
2008-07-28 17:50 ` tlaronde
2008-07-28 19:52   ` Pietro Gagliardi
2008-07-28 21:07     ` Russ Cox
2008-07-28 21:33       ` Skip Tavakkolian
2008-07-29 18:40   ` Roman V. Shaposhnik
2008-07-29 19:12     ` Bakul Shah
2008-07-30 11:35       ` tlaronde
2008-07-30 11:50         ` Roman V. Shaposhnik
2008-07-30 13:50           ` Paweł Lasek
2008-07-30 17:42           ` tlaronde
2008-07-30 18:07           ` tlaronde
2008-07-30 18:17           ` andrey mirtchovski
2008-07-30 11:58         ` Robert Raschke
2008-07-30 13:53         ` David Leimbach
2008-07-30 14:00         ` andrey mirtchovski
2008-07-30 15:35           ` Roman V. Shaposhnik
2008-07-30 16:53           ` Bakul Shah

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=d6208458d6551cb798595b8eff1a20a5@plan9.bell-labs.com \
    --to=sape@plan9.bell-labs.com \
    --cc=9fans@9fans.net \
    /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).