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 UAA16670; Tue, 11 May 2004 20:11:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA17559 for ; Tue, 11 May 2004 20:11:43 +0200 (MET DST) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4BIBfEV007377 for ; Tue, 11 May 2004 20:11:42 +0200 Received: (qmail 28679 invoked by uid 64014); 11 May 2004 18:11:40 -0000 Received: from shawnw@speakeasy.org by mail5.speakeasy.net with AmikaGuardian-Server-2.1.2; 11 May 2004 18:11:40 -0000 X-AmikaGuardian-Id: mail5.speakeasy.net108429909926128661 X-AmikaGuardian-Category: AN:Override Structure : 1.85 X-AmikaGuardian-Category: AN:Vectored : 1.85 X-AmikaGuardian-Category: AN:Forwarded Mail : 1.85 X-AmikaGuardian-Category: AN:Override : 1.85 X-AmikaGuardian-Category: AN:Exception : 1.85 X-AmikaGuardian-Action: Do Nothing() Received: from dialup-4.242.33.113.dial1.seattle1.level3.net (HELO sherlock.localdomain) (shawnw@[4.242.33.113]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 May 2004 18:11:39 -0000 Received: by sherlock.localdomain (Postfix, from userid 502) id 4ECFEFD15; Tue, 11 May 2004 11:09:33 -0700 (PDT) Date: Tue, 11 May 2004 11:09:33 -0700 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] Best way to synchronize OS processes? Message-ID: <20040511180933.GB595@speakeasy.org> Mail-Followup-To: caml-list@inria.fr References: <40A115E3.1060400@frotz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40A115E3.1060400@frotz.com> User-Agent: Mutt/1.4.2i X-Miltered: at nez-perce with ID 40A1175D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; shawnw:01 caml-list:01 2004:99 serialize:01 lockf:01 shawnw:01 0700,:01 speakeasy:01 speakeasy:01 synchronize:01 unix:02 unix:02 module:03 wrote:03 executing:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, May 11, 2004 at 11:05:23AM -0700, Ranjan Bagchi wrote: > Hi -- > > I'm writing some code which will end up executing concurrently on > several OS processes. I'd like to serialize access to some specific OS > resources (for instance, writing to a single file). The Unix module > doesn't appear to offer anything like a critical section or an OS > mutex. Is there a preferred way to do this? File locking with Unix.lockf? -- Shawn Wagner shawnw@speakeasy.org ------------------- 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