
Hello, I would like to know if BGL works in a shared memory environement. I would like to build a graph (with BGL) in a shared memory area in order to enable multiple processes to access the graph. Best regards, Alexandre Motin

May be you can use concurrent data structures to represent your graph in
adjacency_list < > . You could use boost::threads for accessing. But
you would have to synchronize
You can also use concurrent data structures provided by intel TBB and use
parallel_for () for accessing elements. TBB provides good synchronization
constructs.
- Aniket
On Wed, Feb 26, 2014 at 2:54 AM, Alexandre Motin
Hello, I would like to know if BGL works in a shared memory environement. I would like to build a graph (with BGL) in a shared memory area in order to enable multiple processes to access the graph. Best regards, Alexandre Motin
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Thanks and regards, Aniket Pugaonkar

Hello,
Many thanks for your reply Aniket. However, what I would like to know is :
Can we put boost::adjacency_list<> in a shared memory area and use it
easily?
I know that data structures which use polymorphism can not for example, or
data structures which have absolute pointers in them. In fact, I read that
a same place in a shared memory area can have different addresses for
different processes.
Best regards,
Alexandre Motin
2014-02-26 18:28 GMT+01:00 Aniket Pugaonkar
May be you can use concurrent data structures to represent your graph in adjacency_list < > . You could use boost::threads for accessing. But you would have to synchronize You can also use concurrent data structures provided by intel TBB and use parallel_for () for accessing elements. TBB provides good synchronization constructs.
- Aniket
On Wed, Feb 26, 2014 at 2:54 AM, Alexandre Motin
wrote: Hello, I would like to know if BGL works in a shared memory environement. I would like to build a graph (with BGL) in a shared memory area in order to enable multiple processes to access the graph. Best regards, Alexandre Motin
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
--
Thanks and regards, Aniket Pugaonkar
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Hi Alexandre,
2014-02-26 16:54 GMT+09:00 Alexandre Motin
Hello, I would like to know if BGL works in a shared memory environement. I would like to build a graph (with BGL) in a shared memory area in order to enable multiple processes to access the graph. Best regards, Alexandre Motin
Maybe you can use Boost.Interprocess's allocator : http://www.boost.org/doc/libs/1_55_0/doc/html/interprocess/allocators_contai... And, documentation about using customizing allocator with `adjacency_list` is follow: http://www.boost.org/doc/libs/1_55_0/libs/graph/doc/using_adjacency_list.htm... Regards, Akira --
======================== Akira Takahashi mailto:faithandbrave@gmail.com site : https://sites.google.com/site/faithandbrave/about/en
participants (3)
-
Akira Takahashi
-
Alexandre Motin
-
Aniket Pugaonkar