From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA08317; Sun, 5 Sep 2004 10:00:22 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA09505 for ; Sun, 5 Sep 2004 10:00:21 +0200 (MET DST) Received: from mail.hybrid.fi (www.hybrid.fi [195.170.158.34]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8580KVl001877 for ; Sun, 5 Sep 2004 10:00:21 +0200 Received: from charon ([195.170.158.21]:39940 "EHLO imap.hybrid.fi") by hybrid.fi with ESMTP id ; Sun, 5 Sep 2004 11:00:07 +0300 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_00 Received: from [127.0.0.1] ([195.170.158.34]) by imap.hybrid.fi (Kerio MailServer 6.0.1) for caml-list@inria.fr; Sun, 5 Sep 2004 11:00:06 +0300 Message-ID: <413AC784.4010007@hybrid.fi> Date: Sun, 05 Sep 2004 11:00:04 +0300 From: Janne Hellsten Reply-To: janne@hybrid.fi User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Unix module and threads Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 413AC794.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; threads:01 caml-list:01 foo:01 threads:01 parallelize:01 cygwin:01 native:02 unix:02 unix:02 module:03 i'm:07 written:08 i've:09 linux:09 happens:10 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello caml-list, I wonder what happens if I call [Unix.chdir foo] from two different threads, with two different directories? After chdir I typicall call [Unix.system] and/or [Unix.open_process_full] and expect the directory to be the one just previously set with [Unix.chdir]. I would like to parallelize a simple building tool that I've written, but I'm a bit worried if things will mysteriously break with the introduction of multi-threaded control. I am running both Windows (Cygwin and native) and Linux. Thank you for your help, Janne Hellsten ------------------- 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