From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 5DAF3BC6B for ; Wed, 10 Oct 2007 16:44:00 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAGmCDEeAKgEfh2dsb2JhbACOSAIBCAop X-IronPort-AV: E=Sophos;i="4.21,255,1188770400"; d="scan'208";a="4318258" Received: from mail.cs.rice.edu ([128.42.1.31]) by mail3-smtp-sop.national.inria.fr with ESMTP; 10 Oct 2007 16:43:59 +0200 Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id A42952C2B68 for ; Wed, 10 Oct 2007 09:43:57 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JCf9hdvtY1La for ; Wed, 10 Oct 2007 09:43:50 -0500 (CDT) Received: from [10.194.94.49] (nat-168-7-241-123.rice.edu [168.7.241.123]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 00EA92C2B73 for ; Wed, 10 Oct 2007 09:43:48 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v750) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list@yquem.inria.fr From: Raj Bandyopadhyay Subject: Threads question Date: Wed, 10 Oct 2007 09:43:48 -0500 X-Mailer: Apple Mail (2.750) X-Spam: no; 0.00; ocaml:01 ocaml:01 bytecode:01 threads:01 threads:01 algorithm:01 pthreads:02 native:03 library:03 library:03 concurrency:04 overhead:04 raj:05 raj:05 anyway:05 Hi all I am using OCaml threads for an application that I am building. However, I don't require concurrency (which OCaml threads do not provide anyway). I'm using it only because it makes it far easier to express my algorithm. I was wondering if there is a more lightweight thread library out there which works at the native code level and does not use system- level threads? I'd like to avoid the performance overhead of pthreads, if possible. The OCaml threads library does provide a vm- level thread, but it works only for bytecode :( Thanks Raj