caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Marie Gaillourdet <jmg@gaillourdet.net>
To: jtbryant@valdosta.edu
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How INRIA people envision OCaml's parallel future?
Date: Fri, 24 Jun 2005 10:52:06 +0200	[thread overview]
Message-ID: <1119603126.8485.4.camel@localhost.localdomain> (raw)
In-Reply-To: <1119547256.4675.12.camel@starlight.valdosta.edu>

Hi,

Am Donnerstag, den 23.06.2005, 13:20 -0400 schrieb Jonathan_T_Bryant:
> As far as the GC, am I'm just kinda throwing this out off the cuff, but
> couldn't the heap be a shared memory segment that all threads attach to,
> thereby allowing easier collection on multiple processors.  All
> allocations could be synchronized (via some kind of semaphore) and could
> be locked only during a collection.  I know this is a lot harder than
> that, but, like I said, it's just an idea...

I am not a garbage collector specialist, too. But I guess it is much
harder than this. Your idea implies that every allocation requires to
obtain a lock. How often do you allocate memory in a functional
programming language? Quite often, I guess. Every simple tuple, every
constructor application and so on. So you would synchronize all threads
very often. Additionally, during every collection phase, all other cpus
have to wait for the garbage collector. I am pretty sure, that this
would not scale very far. Sorry ;-)

Best Regards,
  Jean-Marie


  reply	other threads:[~2005-06-24  8:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-23  7:21 David MENTRE
2005-06-23  8:33 ` [Caml-list] " Frédéric Gava
2005-06-23  9:28   ` David MENTRE
2005-06-23 17:20 ` Jonathan_T_Bryant
2005-06-24  8:52   ` Jean-Marie Gaillourdet [this message]
2005-06-24  9:36     ` David MENTRE
2005-06-24 12:50       ` David MENTRE
2005-06-24 16:14         ` Jonathan_T_Bryant
     [not found]           ` <1119630886.18424.1.camel@calaf.rn.informatics.scitech.susx.ac.uk>
2005-06-24 17:02             ` Jonathan_T_Bryant
2005-06-24 16:59         ` Eric Stokes
2005-06-24 18:25           ` XDR and ASN.1 (was: Re: [Caml-list] How INRIA people envision OCaml's parallel future?) David MENTRE
2005-06-24 22:46           ` [Caml-list] How INRIA people envision OCaml's parallel future? Erik de Castro Lopo

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=1119603126.8485.4.camel@localhost.localdomain \
    --to=jmg@gaillourdet.net \
    --cc=caml-list@inria.fr \
    --cc=jtbryant@valdosta.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).