Distributed shared memory library for C ++?

I am writing a distributed application framework in C ++. One of the requirements is to provide distributed shared memory. Instead of writing my own from scratch (and possibly reinventing the wheel), I thought I'd see if there were any pre-existing open source libraries - a quick Google search did nothing.

Does anyone have any experience with a good C ++ DSM library that they can recommend?

Ideally, the library will support MRMW (multiple readers / multiple authors), but if necessary, I can work with MRSW (multiple readers, single writer). I am developing Linux.

+7
c ++ shared-memory distributed
source share
3 answers

Did you consider memcached ?

This is a distributed network, and it can be very fast.

It has bindings for a large number of languages, you can access it from different operating systems and supports several writers with several readers.

+3
source share

Ace shared memory is designed to be shared on one platform.

Distributed shared memory is very non-trivial, as there are problems associated with the transaction. To effectively use distributed shared memory (even for copy), you will find that you need (among other things) distributed synchronization algorithms and protocols that require fault tolerance before a failure. (Shshooot! Aint, which is always the case!)

Important scientific articles have been written on these issues (see some chapters in the bibliography of Taubenfield's book)

This is really a warning that β€œfolding your own” will be a significant project in itself.

+6
source share

Try the ACE library , you have a lot of good stuff that you will like. They have a Shared_memory class, but I'm not sure if its DSM - if not, they have a lot of other network / distributed materials that you might find interesting.

0
source share

All Articles