From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 32A1FBB83 for ; Fri, 12 May 2006 18:30:52 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4CGUpx3001208 for ; Fri, 12 May 2006 18:30:51 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA27491 for ; Fri, 12 May 2006 18:30:51 +0200 (MET DST) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4CGUop3001205 for ; Fri, 12 May 2006 18:30:50 +0200 Received: by wx-out-0102.google.com with SMTP id h26so345240wxd for ; Fri, 12 May 2006 09:30:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XckY4FYnm3wzB56kF+Png//h1SEdf7mQvrcbtdEVw7h2i6MZhdOtNvgDUOdYIr4fNC9ed8QidMg1CrALSf5Kn2DJh4vMajDOZ+tKR9NcQD05eYQznnK1g8h5NaXUTSaYDwspddeKES6eCTNWwtfpn+gDDc6tBZ91rqQbaRLyQgo= Received: by 10.70.132.20 with SMTP id f20mr3512786wxd; Fri, 12 May 2006 09:30:50 -0700 (PDT) Received: by 10.70.56.17 with HTTP; Fri, 12 May 2006 09:30:49 -0700 (PDT) Message-ID: Date: Fri, 12 May 2006 12:30:49 -0400 From: "Markus Mottl" To: "Vincenzo Ciancia" Subject: Re: [Caml-list] Re: Co-existing with non OCaml threads Cc: caml-list@inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1147432929.19900.18.camel@localhost.localdomain> X-j-chkmail-Score: MSGID : 4464B83A.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 4464B83B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4464B83A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 ocaml:01 threads:01 ocaml:01 threads:01 callbacks:01 wrote:01 caml-list:01 clearer:01 functions:01 library:03 thread:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=INFO_TLD,RCVD_BY_IP autolearn=disabled version=3.0.3 On 5/12/06, Vincenzo Ciancia w= rote: > However, let's make it clearer, you can create a thread in ocaml and then > call a C function, and this C function, which will be run concurrently wi= th > other C functions called the same way, can call back ocaml. Yes, this is possible, and good libraries provide ways of letting user created threads enter the library to execute callbacks. Markus --=20 Markus Mottl http://www.ocaml.info markus.mottl@gmail.com