<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/2858f1e4532daae90d5b0762e3fff3cd"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-07T23:15:58"
  subject="How to write efficient threaded programs on OCaml"
  prev="2006/02/e9a18d1cb4053c82e47fc6c85ff98215"
  next="2006/02/38106d71003e52b2286dfdcb5936de4f"
  next-in-thread="2006/02/8d4fd8575d33db86ab919dcb9d92ceb0"
  prev-thread="2006/02/e8e061a36eebffc17c3ac923c74535fc"
  next-thread="2006/02/38106d71003e52b2286dfdcb5936de4f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/2858f1e4532daae90d5b0762e3fff3cd"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-07T23:15:58"
  subject="How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/8d4fd8575d33db86ab919dcb9d92ceb0"
  from="Erik de Castro Lopo &lt;ocaml-erikd@m...&gt;"
  author="Erik de Castro Lopo"
  date="2006-02-08T08:21:25"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/ba69e3f637900ed5b9a81ab36432302a"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-08T14:38:22"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/dab51431550d81c48172d697ed6abd7f"
  from="Xavier Leroy &lt;Xavier.Leroy@i...&gt;"
  author="Xavier Leroy"
  date="2006-02-08T15:17:40"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/13560aa4b6441de8642a3cc923b5bdb2"
  from="Matthieu Dubuget &lt;matthieu.dubuget@l...&gt;"
  author="Matthieu Dubuget"
  date="2006-02-08T16:55:15"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
<msg 
  url="2006/02/69ecf29a7a4b470c82efbd9670ae271b"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-08T22:13:44"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/58e39975dccbb2d8104ae347f9080a44"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-09T17:49:04"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/778886ccf985c5e4118a759b4642a6fd"
  from="Matthew Hannigan &lt;mlh@z...&gt;"
  author="Matthew Hannigan"
  date="2006-02-09T23:24:32"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2006/02/f6d6dd723dfe60f938c19fe88ed24c99"
  from="Florian Weimer &lt;fw@d...&gt;"
  author="Florian Weimer"
  date="2006-02-13T10:28:49"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/4cc1ecf5ea45bb6b9d9360127dbcac9e"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-16T18:11:17"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

I was wondering if some among you would like to share some hints about
how to write efficient multithreaded applications in OCaml.  Indeed,
for example, the following concurrency test shows OCaml performing
quite poorly:
http://shootout.alioth.debian.org/debian/benchmark.php?test=chameneos&amp;lang=all
A qprof profiling reveals that OCaml is spending 63-73% of its time on
the function caml_process_pending_signals and 13-18% on
pthread_cond_signal.  Is there a way to improve the performance of
this code ?

Now maybe this is not to be considered like a good analogous of a
possible "real life" application.  Hence my question: what do people
do to get decent performance in these cases?

Cheers,
ChriS

</contents>

</message>

