Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 21:15:51 -0200
From:      Gustavo Vieira G C Rios <grios@netshell.vicosa.com.br>
To:        Tom <tom@uniserve.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: semaphores
Message-ID:  <36ACFB27.4B84ECFD@netshell.vicosa.com.br>
References:  <Pine.BSF.4.02A.9901251304350.6161-100000@shell.uniserve.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
I dont wanna use SYSV, so how could i do it?
If i want to use POSIX.1b semaphores, how could i do it?
Since FreeBSD does not have POSIX.1b semaphores in native system
(recently installed) how can i address my problem if i want to use
POSIX.1b ?
Which are the alternatives ?


Thank you very much.

Tom wrote:
> 
> On Mon, 25 Jan 1999, Gustavo Vieira Goncalves Coelho Rios wrote:
> 
> > i am trying to implement a readers/writers solution using concurrency
> > control.
> > But the problem is: When i used POSIX.1b to get concurrency control
> > working, i realized that FreeBSd simply does not support it.
> > there is not a semaphore.h header in any fs!!!
> > Another problem: As FreeBSD does not support POSIX.1b i decided to use
> > SYSVSEM, but my kernel does not support it.
> 
>   Why don't you build a kernel with SYSVSEM then?
> 
> > It's impossible, if there is no way to use semphores in FreeBSD (the only
> > two way i know don't work) in the scenario i am. So there is two options:
> > a) None program in my system is using semaphores, any server, etc.
> 
>   This is true.  Concurrency control can be done other ways.  No system
> utilities use it.
> 
> > b) there is a thirdy way to get semaphores which i don't know, if so, can
> > anybody explain me.
> 
>   Lots of different ways, including SysV semaphores.
> 
> > ---
> > I use UNIX because reboots are for hardware upgrades.
> > You use windowze because the guy on TV told you to ...
> > ----- Gustavo Rios -----
> 
> Tom


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36ACFB27.4B84ECFD>