It is currently Wed, 19 Jun 2013 00:21:10 GMT



 
Author Message
 help sharing shared memory between non sibling processes
Typically an application allocates shared memory, and then calls fork()
to create 1 or more child processes which then are able to share that
shared memory segment.  I have a requirement for non sibling processes
which need to share items in shared memory. I am not familiar with any
solutions in this area. Below is a very brief outline of my approach,
I would greatly appreciate pointers to existing work or discussion about
my approach.

- Maintain a "catalog" of items and the shared memory ID that the items
  are stored in.

- Operations on the catalog are as follows:
  - add item
  - delete item
  - query items in catalog
  - request a read/write lock to an item
  - request a read only lock to an item
  - release a lock
  - initialize / terminate

- I realize I could have a client/server or client side only approach.
  Currently, I am leaning toward a client side only solution where I maintain
  the catalog in shared memory, with 1 semaphore that controls access to
  the catalog data (it provides the necessary locking for adds/deletes...).

- The first process up would actually initialize the empty catalog, others
 would simply connect to it, and execute transactions.

- For the most part, the access patterns will be very low-bandwidth, e.g.
  a process comes up, requests data is shared memory, and then releases
  that data upon it termination -- I realize that the single semaphore
  would be a major bottle neck if a process was locking/unlocking... with
  a high frequency.

If you have seen work in this area, please let me know.

Thanks,

-----------
John Love,                 jl...@lgc.com
Landmark Graphics          Houston, TX
(713) 579-4683



 Sat, 28 Jan 1995 03:01:48 GMT   
 
   [ 1 post ] 

Similar Threads

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

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

3. Help: Using a sharing memory with related processes

4. SHARED MEMORY FOR A PROCESS HELP

5. Shared, non shared libraries need some information about this subject

6. Linking with Shared and Non-shared libs.

7. Sharing A Device / Shared Memory Issues

8. Solaris Shared Memory, Shared Libraries and Heap

9. Using a shared lib as shared memory: Possible?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software