caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jason Ganetsky" <jason.ganetsky@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Multiprocessor support in OCaml
Date: Sun, 22 Apr 2007 03:42:09 -0400	[thread overview]
Message-ID: <ab351c020704220042x6e139375wa97393247ccc4867@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 708 bytes --]

Hi all,

I'm new to this list, and new to OCaml (although, have some experience with
SML).

Anyway, I have recently written an OCaml thread pool implementation, on top
of the Thread and Event modules. I did this for the purpose of exploiting an
SMP system I have, and was a disappointed to read today that OCaml doesn't
support multiprocessor systems.

I played around with it a little, and discovered that by liberally calling
Thread.yield, I do cajole my threads into running on multiple processors. Is
this behavior normal, or have I discovered a problem with the Thread module?
I'm certainly happy that I can get it to use my SMP... but I will stop it at
once if you tell me that this is unsafe.

-Jason

[-- Attachment #2: Type: text/html, Size: 750 bytes --]

             reply	other threads:[~2007-04-22  7:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-22  7:42 Jason Ganetsky [this message]
2007-04-22  8:44 ` [Caml-list] " Richard Jones
2007-04-22 10:30 ` Xavier Leroy
2007-04-22 11:55   ` Don Syme
2007-04-22 10:58 ` Erik de Castro Lopo
2007-04-22 13:23   ` Jon Harrop
2007-04-22 17:32 ` Zheng Li
     [not found]   ` <ab351c020704221052v50ce66b6maec299889a2c1f1f@mail.gmail.com>
2007-04-22 17:52     ` [Caml-list] " Jason Ganetsky
2007-04-23  8:10       ` Richard Jones

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=ab351c020704220042x6e139375wa97393247ccc4867@mail.gmail.com \
    --to=jason.ganetsky@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /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).