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 EDDF6BDC5 for ; Sun, 21 Aug 2005 12:02:53 +0200 (CEST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7LA2rf8016202 for ; Sun, 21 Aug 2005 12:02:53 +0200 Received: by xproxy.gmail.com with SMTP id h30so184644wxd for ; Sun, 21 Aug 2005 03:02:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iw5WVHz+ipRhpG3uNB7aRewbT7tjkHBUF7RUC2m4qb1I40T16R+7q90zcZz0b63/IyoKcd5tWWTpzeYnI1POO6hyM1mn9u+iCYMC4TcAHWD9wn1lOoiuY6q73lIc+8bvDEDcl5vqPArv7sGjsi6NFx0gl7HRN98AX+IX/XkfHCc= Received: by 10.70.73.1 with SMTP id v1mr19462wxa; Sun, 21 Aug 2005 03:02:52 -0700 (PDT) Received: by 10.70.74.18 with HTTP; Sun, 21 Aug 2005 03:02:52 -0700 (PDT) Message-ID: Date: Sun, 21 Aug 2005 11:02:52 +0100 From: Julien Verlaguet To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] In need of serious help regarding threading In-Reply-To: <430604BE.2080205@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <430604BE.2080205@inria.fr> X-Miltered: at nez-perce with ID 4308514D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 threading:01 ocaml:01 macosx:01 ...:98 ...:98 hacks:01 pps:01 jussieu:01 dev:01 migration:01 thread:02 thread:02 emmanuel:03 linux:06 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 I have been writing a cooperative thread system for ocaml, it only works on linux and macosx though ... you can find it at www.pps.jussieu.fr/~emmanuel/Public/Dev/HirondML/ I am giving you this link because I have had the same type of problems at a time, it gave me a lot of headackes and sleepless nights ... so I hope this will help two little notes : Ignore the thread migration mechanism if you are only interested in the thread system Do not expect nice code, the C code is full of hacks and disgusting things that I don't understand myself anymore I hope this helps ... J