From: pcuoq@ens.ens-lyon.fr
To: caml-list@inria.fr
Subject: Re: threads library in Objective Caml
Date: Tue, 15 Apr 1997 10:41:59 +0200 (MET DST) [thread overview]
Message-ID: <199704150841.KAA12583@pauillac.inria.fr> (raw)
In-Reply-To: <E0wGiAL-0003qE-00@heaton.cl.cam.ac.uk>
I think that the part of the documentation you
refer to deals with the thread library of the
bytecode compiler, implemented by time-sharing
on the virtual machine.
There is however a thread library using Unix threads
(in otherlibs/systhreads) but it has the same
bad behavior on multi-processor machines :
There is (almost everytime) only one caml thread
running. This is ensured by a mutex shared among
caml threads. The mutex is released only at safe
points of the execution.
In particular it is released each time that the
current thread could block.
This explains the behavior of caml programs on
MP machines.
Pascal
prev parent reply other threads:[~1997-04-16 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-14 9:35 Pawel Wojciechowski
1997-04-14 17:06 ` Francois Rouaix
1997-04-15 3:51 ` Frank Christoph
1997-04-15 8:41 ` pcuoq [this message]
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=199704150841.KAA12583@pauillac.inria.fr \
--to=pcuoq@ens.ens-lyon.fr \
--cc=caml-list@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