English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Is it impossible to use Ocaml thread and system thread simultaneously?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-12-15 (07:57)
From: SooHyoung Oh <shoh@m...>
Subject: [Caml-list] Is it impossible to use Ocaml thread and system thread simultaneously?

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

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

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?

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

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