[net.unix] Semaphores and/or Shared Memory Implementations for 4.2BSD

bruce@garfield.UUCP (Bruce Keats) (02/15/85)

	Before we re-invent the wheel, does anyone know of any
implementations of semaphoes and/or shared memory for 4.2BSD.
Yes, (before I get flames about using 4.2 and not V) we are aware
of the implmentations under System V.

-------
	Bruce Keats
	your_favorite_AT&T/Bell_Labs_site!garfield!bruce
	"Perhaps if we made a giant wooden badger ..."

libes@nbs-amrf.UUCP (Don Libes) (02/25/85)

I wrote a system for shared variables for 4.2.  Briefly:

A common memory server takes requests from client processes to declare,
read or write variables.  Common memory, then, is storage local to the CM
server.  Variables are typed, along with some other attributes such as
protection, lifetime, etc.  The manager can be told to wake up a process
if a variable has changed.  Thats the general idea.

For the way we're using it, semaphores aren't necessary (but they
would be easy to add).  One call, cm_sync(), updates the user's idea
of common memory variables with the manager's.  Its noninterruptible,
since the manager completely processes requests in the order they are
received.

In case its not obvious, this is all user level code.  

Don Libes	seismo!nbs-amrf!libes