<?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/12/9be5de9bc54ef363b974fc2c77eecd2b"
  from="SooHyoung Oh &lt;shoh@m...&gt;"
  author="SooHyoung Oh"
  date="2003-12-15T07:57:37"
  subject="[Caml-list] Is it impossible to use Ocaml thread and system thread simultaneously?"
  prev="2003/12/2539c2c91c0d6a1135376d2e330ca702"
  next="2003/12/d48b5541e82f7a6160b744399b9e7b12"
  prev-thread="2003/12/2539c2c91c0d6a1135376d2e330ca702"
  next-thread="2003/12/774646ec595322579ea76517edc01410"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Is it impossible to use Ocaml thread and system thread simultaneously?">
<msg 
  url="2003/12/9be5de9bc54ef363b974fc2c77eecd2b"
  from="SooHyoung Oh &lt;shoh@m...&gt;"
  author="SooHyoung Oh"
  date="2003-12-15T07:57:37"
  subject="[Caml-list] Is it impossible to use Ocaml thread and system thread simultaneously?">
</msg>
</thread>

<contents>

Actuall, I'm developing some ocaml applications on linux (Redhat 9.0, ocaml
3.07-2).
It needs c library from the other comany
which includes some code using system thread.

(Q1)
I heard from annan@hushmail.com
that it is impossible to use ocaml thread and system thread simultaneously.
Is it true?

(Q2)
What I'm doing is
(1) main is coded with ocaml.
(2) register c_callback (c code) to the library
(3) (On packet arrival) a thread in the libraray calls the registered
c_callback function
(4) c_callback (c code) function calls ocaml's callback () function

Is it impossible to implement this?

(Q3)
Although the company which developed the library can't give us the source,
it MAY BE POSSIBLE to change their code for us.

Is there any method to implement our application with minor fix of the
library?

Thanks in advance

---
SooHyoung Oh

-------------------
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>

