Synchronized access to shared memory

Synchronized access to shared memory

Post by Constantine Knizhni » Sat, 25 Apr 1998 04:00:00

Dear developers

I like to anonce a class library providing effective and operating system
independent interface to shared memory. This class makes it possible for
several applications to access objects in shared memory. Methods
for allocation/deallocation of objects in shared memory, setting exclusive
or shared locks are available. Locks can be nested and can be used to
synchronize access
to shared objects by different threads within process as well as
by different processes.

Locking is based on atomic instructions of i486 (and higher) processors XADD
So no context switching are required to lock storage in most common case,
when no other processes are  working with the storage. That is why overhead
of locking is minimal.

In addition to the storage locking mechanism,  there are two other
synchronization primitives:
"semaphore" and "event", providing system independent and convenient
interface for interprocess

There is also implementation of Posix semaphores for Linux based in IPC
Also interface of semaphores located in shared memory is provided.

This library can be used under Windows NT/95 as well as at Unix's for i86
platform with GCC (currently tested only for Linux). It can be downloaded
from my homepage:



Synchronized access to shared memory

Post by Greg Herlei » Sat, 25 Apr 1998 04:00:00

> http:/

looks interesting but ny DNS does not recognize you.  Is there a typo

Greg Herlein                     415-519-3650 Voice    
Herlein Engineering              415-440-9015 Fax                  415-449-5600 Pager

Software Development - Data Acquisition - Networking  
Unix - Linux - Solaris - Embedded Systems - Wireless


Synchronized access to shared memory

Post by Constantine Knizhni » Tue, 28 Apr 1998 04:00:00

Please try

>> http:/

>looks interesting but ny DNS does not recognize you.  Is there a typo


1. Synchronizing Shared Memory access

My initial requirement is to have two independent processes where one
process writes into the shared memory and the other process reads from
it. Now this Write and Read should be synchronised using
Semaphores(I've to use System V semaphores).
So any information on how to implement this would be welcome, OR any
example Source Code will also be of great help.

Thanks in advance......

2. LinuX machine as a network sniffer/ router

3. Device Driver that will allow access to Kernel memory from shared memory?

4. split unix window?

5. Solaris 10: Increasing the process data space; shared memory segments & intimate shared memory problems

6. Cannot install SCO

7. Apache Access Permission Denied > Shared Memory Violation

8. Apache Configuration file for SPARC

9. IPC shared memory access and privileges..

10. Use level locks for shared memory accesses

11. Reference counted string in shared memory accessed by non-related processes

12. Accessing PCI card shared memory from userland

13. Process Termination and Shared Memory Access