IPC facilities (shared memory)

Tim J Ihde tim at doug.UUCP
Thu Mar 10 06:48:57 AEST 1988


In article <335 at mancol.UUCP>, samperi at mancol.UUCP (Dominick Samperi) writes:
> Has anyone used the SCO Xenix IPC facilities? More generally, what kind
> of applications have the IPC facilities (on any System V machine) been
> used for? I haven't seen any applications programs that use them.

I've got a set of simple programs that I wrote to allow
shell scripts to interact via semaphores.  They provide for things
like mksem (create a semaphore), rmsem (remove a semaphore), p, and v.
This allows shells to safely access a resource.

While I originally developed these programs on System V, they compiled and
ran OK on Xenix, as I recall - although I probably didn't do any
extensive testing.  I'm sure processes blocked and waited when they
were supposed to.

As for other uses, I've used shared memory to hold frequently accessed
information (like a database schema or a passwd file).  I know the UN*FY
database uses shared memory for record locking.  I've also used messages
for detailed control of child processes.  These are all under System V,
I haven't tried this kind of thing under Xenix yet.

	tim
-- 
Tim J. Ihde					ihnp4!ctsmain!doug!tim
(201) 560-6808

This disclaimer intentionally left blank.



More information about the Comp.sys.att mailing list