From owner-freebsd-questions Wed Apr 7 0:58:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sucuri.amazon.com.br (sucuri.amazon.com.br [200.241.240.1]) by hub.freebsd.org (Postfix) with ESMTP id 96BC0155FF for ; Wed, 7 Apr 1999 00:58:25 -0700 (PDT) (envelope-from aldrin@americasnet.com) Received: from athome.logicStudios.org (root@pm3-s05.amazon.com.br [200.242.245.38]) by sucuri.amazon.com.br (8.9.3/8.9.3) with ESMTP id EAA16832; Wed, 7 Apr 1999 04:56:23 -0300 Received: from athome.logicStudios.org (aldrin@athome.logicStudios.org [10.0.0.1]) by athome.logicStudios.org (8.8.8/8.8.8) with ESMTP id FAA00892; Wed, 7 Apr 1999 05:05:02 -0300 (EST) (envelope-from aldrin@americasnet.com) Date: Wed, 7 Apr 1999 05:05:02 -0300 (EST) From: Aldrin L X-Sender: aldrin@athome.logicStudios.org To: "Brian O'Shea" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Semaphores In-Reply-To: <19990406155609.L2844@localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 6 Apr 1999, Brian O'Shea wrote: > Named pipes are supported; see the mkfifo(1) man page. It sounds like > you might be able to get away with using advisory record locking with > lockf(3), which is quite a bit simpler to use than System V semaphores. Thanks for the information. :] > Also, file locks are not persistant so if your program crashes, any > locks it holds are released automatically by the system. They are > slightly slower than semaphores, though. Performance is not a really serious issue. I just wanted a simple, portable way to do it. Well, i think i was wondering for something more sophisticated than it really needs to be. I chose to stick to a message queue dir, and a set of procedures for its maintenance. My source for this idea came from qmail's maildir format, which seems it's simple, and smart. > You shouldn't find it too difficult. I thought you were concerned about > downtime or something. No problem at all. I'll do it now. :] done, Aldrin Leal . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message