From: Xavier Leroy <xavier.leroy@inria.fr>
To: Alessandro Baretta <alex@baretta.com>
Cc: "Michaël Grünewald" <michael-grunewald@wanadoo.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] Re: Kinds of threads
Date: Tue, 1 Oct 2002 11:12:38 +0200 [thread overview]
Message-ID: <20021001111238.B3571@pauillac.inria.fr> (raw)
In-Reply-To: <3D9953EC.3030604@baretta.com>; from alex@baretta.com on Tue, Oct 01, 2002 at 09:51:08AM +0200
> The docs say that there are two kinds of threads in O'Caml:
> Ocaml bytecode threads and POSIX threads, and that it is
> possible to select which implementation to use at compiler
> build time. Two questions: first, what is the implementation
> chosen in the ocaml RPM distribution
The RPMs distributed by INRIA use bytecode threads. That might not be
true of RPMs and Debian packages built by third parties.
> second, why must one choose one implementation at compiler build
> time? Why not use a compiler switch such as --posix-threads as opposed
> to --caml-threads?
Mostly because the idea didn't cross my mind. Offhand, I believe that
just playing with the search path would suffice to select between the
two implementations. (This needs to be checked, though.)
> Caml threads are probably the only way to go on Windows,
> since the Win32 API is not POSIX compliant.
Amusingly, it's the other way around: bytecode threads use a lot of
Unix-specific hacks to get non-blocking I/O, while system threads can
easily be built on top of Win32 threads (even though the latter aren't
POSIX-compliant).
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-10-01 9:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-30 13:46 [Caml-list] " Alessandro Baretta
2002-09-30 15:18 ` [Caml-list] " Michaël Grünewald
2002-10-01 7:51 ` Alessandro Baretta
2002-10-01 7:52 ` Remi VANICAT
2002-10-01 9:12 ` Xavier Leroy [this message]
2002-10-01 10:28 ` Sven Luther
2002-10-02 7:46 ` Stefano Zacchiroli
2002-10-01 9:13 ` Benjamin Monate
2002-10-08 11:51 ` [Caml-list] Compile cameleon on debian Yang Shouxun
2002-10-09 6:41 ` Sven LUTHER
2002-10-09 8:14 ` Jérôme Marant
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=20021001111238.B3571@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=alex@baretta.com \
--cc=caml-list@inria.fr \
--cc=michael-grunewald@wanadoo.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