<?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="2003/11/0412d760815e681cc5f614f7fe5f6d6a"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-11-20T09:28:00"
  subject="Re: [Caml-list] Need advice for a mobile application server"
  prev="2003/11/397d9a7b1a9e4c7c6e688afcaed00ecd"
  next="2003/11/f5b0e699d56b25234213fa5e05a7f3cb"
  prev-in-thread="2003/11/397d9a7b1a9e4c7c6e688afcaed00ecd"
  next-in-thread="2003/11/94c82e63709e08d40b0799caa2d90bb4"
  prev-thread="2003/11/f5ceb88194f4324b692f89b6f3398ff2"
  next-thread="2003/11/fa7fd7f24b1fa8fe03faf7957eab5c7b"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/58c657c03c7683b0214401b6eee2a21f"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-11-19T18:03:47"
  subject="[Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/92b38bb5fe64ebcbd2a6a2647dc7906a"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-11-20T06:35:14"
  subject="Re: [Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/397d9a7b1a9e4c7c6e688afcaed00ecd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-11-20T09:13:18"
  subject="Re: [Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/0412d760815e681cc5f614f7fe5f6d6a"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-11-20T09:28:00"
  subject="Re: [Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/94c82e63709e08d40b0799caa2d90bb4"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-11-20T12:08:17"
  subject="Re: [Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/0ae5bd8f719015d2d71a141ee154ed2d"
  from="Basile Starynkevitch &lt;basile.starynkevitch@i...&gt;"
  author="Basile Starynkevitch"
  date="2003-11-20T12:49:52"
  subject="Re: [Caml-list] Need advice for a mobile application server">
<msg 
  url="2003/11/a9650d8c28fc3c001c0bd68b264e2476"
  from="Basile Starynkevitch &lt;basile.starynkevitch@i...&gt;"
  author="Basile Starynkevitch"
  date="2003-11-21T08:48:26"
  subject="Re: [Caml-list] Need advice for a mobile application server">
</msg>
<msg 
  url="2003/11/3b68bd9f4fcd1959aa50cb30ff05169b"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-11-21T18:07:00"
  subject="Re: [Caml-list] Need advice for a mobile application server">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
This is getting off-topic, but:

&gt; [1] Of course the original LinuxThreads being written by Xavier Leroy,
&gt; so I wouldn't want to say it was broken ...

You can safely say LinuxThreads is slightly borken, in that lack of
thread support in the Linux kernel (until recently) prevented full
compliance with the POSIX standard.  These quirks affected some fairly
obscure corners of the POSIX spec, though.  In particular, the earlier
comment that "LinuxThreads creates all threads detached" is not
accurate: thread creation and joining was implemented correctly.

Back to the original question: writing a multithreaded server in OCaml
is definitely feasible.  The only limitation to be aware of is that
OCaml threads do not offer parallelism, just concurrent execution.
What this means is that if there are several processors on your
machine, only one can execute OCaml code at any time, but other
threads (and therefore possibly other processors) can do I/O or C
computations in parallel.

- 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

</contents>

</message>

