caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: "Török Edwin" <edwin+ml-ocaml@etorok.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Threads in byte code and native code work differently
Date: Thu, 25 Sep 2014 14:17:47 +0200	[thread overview]
Message-ID: <1411647467.2930.96.camel@zotac> (raw)
In-Reply-To: <5423FA28.8010003@etorok.net>

[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]

Am Donnerstag, den 25.09.2014, 14:19 +0300 schrieb Török Edwin:
> On 09/25/2014 01:26 PM, Kakadu wrote:
> > Hello,
> > 
> > I have demo application [1] which creates OCaml threads and executes
> > C++ event loop from different libraries. When I compile it to native
> > code everything is fine but when I create custom bytecode executable
> > OCaml threads doesn't work.
> > 
> > I have tested it with Qt4, Qt5 and GTK2 and behaviour is same. Can you
> > explain me what is happening there, please
> 
> See https://sympa.inria.fr/sympa/arc/caml-list/2004-07/msg00305.html
> If you use '-vmthread' the runtime doesn't create new system threads for you.
> 
> Is there a particular reason why you need to use 'ocamlc -vmthread' instead of 'ocamlc -thread'?

Maybe Kakadu did not know this: you can also use -thread for bytecode.
In ancient versions of OCaml this was not possible, but this mode has
been enabled for a long time now.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

      reply	other threads:[~2014-09-25 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 10:26 Kakadu
2014-09-25 11:19 ` Török Edwin
2014-09-25 12:17   ` Gerd Stolpmann [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=1411647467.2930.96.camel@zotac \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=edwin+ml-ocaml@etorok.net \
    /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).