From: Stephen Dolan <stephen.dolan@cl.cam.ac.uk>
To: Peter Zotov <whitequark@whitequark.org>
Cc: "Christoph Höger" <christoph.hoeger@tu-berlin.de>,
"caml users" <caml-list@inria.fr>,
caml-list-request@inria.fr
Subject: Re: [Caml-list] is it possible to embed an OCaml interpreter into an OCaml Module?
Date: Sat, 1 Nov 2014 13:10:37 +0000 [thread overview]
Message-ID: <CA+mHimPwkTCuKKW4AnRpMVVhu29a0xw+yfcFzPQHDn6kUzy8xA@mail.gmail.com> (raw)
In-Reply-To: <ac203386300caa1bc9701bb91418f685@whitequark.org>
On Fri, Oct 31, 2014 at 3:03 PM, Peter Zotov <whitequark@whitequark.org> wrote:
> Incidentally, can someone explain how the runtime manages to be
> multithreaded while it has so much global data? Please don't
> tell me the answer is "every thread copies it back and forth
> on context switch".
In current OCaml, there is a global lock. The global data can only be
accessed holding this lock, so only one thread can run OCaml code at a
time.
In the multicore branch, the data is thread-local.
Stephen
next prev parent reply other threads:[~2014-11-01 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-31 14:42 Christoph Höger
2014-10-31 15:03 ` Peter Zotov
2014-11-01 13:10 ` Stephen Dolan [this message]
2014-11-01 12:54 oleg
2014-11-03 14:13 ` Christoph Höger
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=CA+mHimPwkTCuKKW4AnRpMVVhu29a0xw+yfcFzPQHDn6kUzy8xA@mail.gmail.com \
--to=stephen.dolan@cl.cam.ac.uk \
--cc=caml-list-request@inria.fr \
--cc=caml-list@inria.fr \
--cc=christoph.hoeger@tu-berlin.de \
--cc=whitequark@whitequark.org \
/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