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 SAA13926; Wed, 12 May 2004 18:54:38 +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 SAA14328 for ; Wed, 12 May 2004 18:54:37 +0200 (MET DST) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4CGsYSH027525 for ; Wed, 12 May 2004 18:54:35 +0200 Received: (qmail 5384 invoked by uid 64014); 12 May 2004 16:54:31 -0000 Received: from shawnw@speakeasy.org by mail3.speakeasy.net with AmikaGuardian-Server-2.1.2; 12 May 2004 16:54:31 -0000 X-AmikaGuardian-Id: mail3.speakeasy.net10843808702615366 X-AmikaGuardian-Category: AN:Override Structure : 1.9 X-AmikaGuardian-Category: AN:Vectored : 1.9 X-AmikaGuardian-Category: AN:Forwarded Mail : 1.9 X-AmikaGuardian-Category: AN:Override : 1.9 X-AmikaGuardian-Category: AN:Exception : 1.9 X-AmikaGuardian-Action: Do Nothing() Received: from dialup-4.242.36.147.dial1.seattle1.level3.net (HELO sherlock.localdomain) (shawnw@[4.242.36.147]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 12 May 2004 16:54:30 -0000 Received: by sherlock.localdomain (Postfix, from userid 502) id 3F996FD15; Wed, 12 May 2004 09:52:31 -0700 (PDT) Date: Wed, 12 May 2004 09:52:30 -0700 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] Best way to synchronize OS processes? Message-ID: <20040512165230.GD595@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 concorde with ID 40A256CA.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 shawnw:01 ocaml:01 0700,:01 speakeasy:01 speakeasy:01 synchronize:01 unix:02 module:03 wrote:03 library: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? > A related note that I thought of last night: How about when you need something more complicated than a simple mutex? A quick look at the hump didn't find a library for working with SysV semaphores in ocaml. Would that be useful for anyone? -- 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