caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Alexander V. Voinov" <avv@quasar.ipa.nw.ru>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: Mattias Waldau <mattias.waldau@abc.se>, Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] Will Ocaml use a  4-way SMP box without splitting the  program into separate processes?
Date: Mon, 16 Jul 2001 18:59:38 -0700	[thread overview]
Message-ID: <3B539C0A.B8FA83A@quasar.ipa.nw.ru> (raw)
In-Reply-To: <20010715133250.B4478@pauillac.inria.fr>

Hi Xavier,

Xavier Leroy wrote:
> 
> > As I understand it, Ocaml has one master lock for handling threading.
> 
> Correct.
> 
> > Doesn't this mean that a process can never use more than one processor?
> 
> Yes, if the process is entirely composed of Caml code.  Long-running C
> primitives release the lock, meaning that your 4-processor machine can
> have 1 processor running Caml code and 3 executing C primitives,
> e.g. database queries.

Is this true for both native and bytecode? 

Alexander
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  parent reply	other threads:[~2001-07-17  2:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-13 19:59 Mattias Waldau
2001-07-15 11:32 ` Xavier Leroy
2001-07-15 12:15   ` William Chesters
2001-07-17  1:59   ` Alexander V. Voinov [this message]
2001-07-20 14:01     ` Xavier Leroy

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=3B539C0A.B8FA83A@quasar.ipa.nw.ru \
    --to=avv@quasar.ipa.nw.ru \
    --cc=Xavier.Leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=mattias.waldau@abc.se \
    /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).