Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 1996 23:12:27 +0600
From:      Tim Pierce <twpierce@bio-3.bsd.uchicago.edu>
To:        scrappy@ki.net
Cc:        hackers@freebsd.org
Subject:   Re: semaphores/shared memory
Message-ID:  <9611100512.AA13579@bio-5.bsd.uchicago.edu>
In-Reply-To: <Pine.NEB.3.95.961109214106.11950G-100000@quagmire.ki.net> (scrappy@ki.net)

next in thread | previous in thread | raw e-mail | index | archive | help
> 	essentially, I want the server to write a line of data to 
> shared memory, then signal all the clients at once that the data is
> there, so that they all pick up the data...

It sounds like this ought to be easy if you simply have each
client wait on the semaphore, and then have the server increment
the semaphore by a suitably high number (e.g. MAXINT) in order to
ensure that they all are freed at once.

Sort of a kluge, but it ought to work.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9611100512.AA13579>