Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 1999 05:05:02 -0300 (EST)
From:      Aldrin L <aldrin@americasnet.com>
To:        "Brian O'Shea" <boshea@ricochet.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Semaphores
Message-ID:  <Pine.BSF.4.05.9904070458250.289-100000@athome.logicStudios.org>
In-Reply-To: <19990406155609.L2844@localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <aldrin@americasnet.com>.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904070458250.289-100000>