From: Benjamin Monate <Benjamin.Monate@lri.fr>
To: Alessandro Baretta <alex@baretta.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Kinds of threads
Date: Tue, 1 Oct 2002 11:13:16 +0200 [thread overview]
Message-ID: <20021001111316.544677bc.monate@lri.fr> (raw)
In-Reply-To: <3D9953EC.3030604@baretta.com>
On Tue, 01 Oct 2002 09:51:08 +0200
Alessandro Baretta <alex@baretta.com> wrote:
> Still, this does not answer my question: what is the
> threading style chosen for the official RPM distribution of
> O'Caml? Let me see if I can figure this out by myself...
>
Here is a small test to detect what kind of threads you have:
====================================================================
(* Compile with ocamlc -o threadtest -thread unix.cma threads.cma
threadtest.ml *) open Thread
let f () = while true do () done
let i = create f ()
let _ =
try
kill i;
print_string "Bytecode threads available\n"
with Invalid_argument "Thread.kill: not implemented"
-> print_string "Native threads available\n"
====================================================================
Hope this helps.
--
| Benjamin Monate | mailto:monate@lix.polytechnique.fr |
| LIX | http://www.lri.fr/~monate/ |
| École Polytechnique - 91128 Palaiseau Cedex - France |
-------------------
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:24 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
2002-10-01 10:28 ` Sven Luther
2002-10-02 7:46 ` Stefano Zacchiroli
2002-10-01 9:13 ` Benjamin Monate [this message]
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=20021001111316.544677bc.monate@lri.fr \
--to=benjamin.monate@lri.fr \
--cc=alex@baretta.com \
--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