From owner-freebsd-questions Mon Apr 30 11:33:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id DEC9837B422 for ; Mon, 30 Apr 2001 11:33:26 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.2/8.11.2) with ESMTP id f3UIXGL28772; Mon, 30 Apr 2001 14:33:16 -0400 (EDT) Date: Mon, 30 Apr 2001 14:33:15 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@onyx To: Abdul Mehdi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD and system V Semaphores In-Reply-To: <20010430182830.36305.qmail@web13503.mail.yahoo.com> 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 Check the following options in your kernel configuration file to see if they exist: options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores I can guarantee that these stuff work perfectly on FreeBSD from my personal experiences. -Zhihui On Mon, 30 Apr 2001, Abdul Mehdi wrote: > I have tried to write some simple programs about the > binary semaphores, I didn't get the result that I > expected but I was able to create one > set of semaphores has one track. I think my question > is, if I'm able to create a semaphore and delete it, > does this mean my FreeBSD 4.0 > supports system V semaphores, or I need to rebuild the > kernel with new options? I have another > question/request: Is there any body can > send me a simple semaphore program that has two > processes one process take the track and write to a > file and another process waiting > for the track to be free. I need to see the > synchronization in FreeBSD please. Thanks. > abdul > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message