将stl容器中的对象放置在共享内存中
2009-02-28 19:02
211 查看
1、 gcc 上关于在共享内存中使用 stl 容器中对象的讨论。
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21251
2、http://sourceforge.net/projects/allocator/
3、OSSP mm
http://www.ossp.org/pkg/lib/mm/
据其介绍,只能用于 fork 的进程之间。
以下引用 ossp mm 的内容:OSSP mm is a 2-layer abstraction library which simplifies the usage of shared memory between forked (and this way strongly related) processes under Unix platforms.
盖因 fork 的进程,其虚表在内存中的地址相同。(嵌在了 .text 段)。于是,猜想可能这个库实现了虚对象在共享内存中的放置。
3、http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/interfaces.html
http://sourceforge.net/projects/allocator/ http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/index.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21251
2、http://sourceforge.net/projects/allocator/
3、OSSP mm
http://www.ossp.org/pkg/lib/mm/
据其介绍,只能用于 fork 的进程之间。
以下引用 ossp mm 的内容:OSSP mm is a 2-layer abstraction library which simplifies the usage of shared memory between forked (and this way strongly related) processes under Unix platforms.
盖因 fork 的进程,其虚表在内存中的地址相同。(嵌在了 .text 段)。于是,猜想可能这个库实现了虚对象在共享内存中的放置。
3、http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/interfaces.html
http://sourceforge.net/projects/allocator/ http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/index.html
相关文章推荐
- 把STL容器放入共享内存
- C++容器模板在共享内存中的使用
- STL容器里存放对象还是指针(转)
- [置顶] 从零开始学C++之STL(二):实现简单容器模板类Vec(vector capacity 增长问题、allocator 内存分配器)
- 容器放置元素(对象)后再对该元素进行操作能否改变容器中元素的值
- C++容器模板在共享内存中的使用
- STL容器里存放对象还是指针[仅把图片敲成文字]
- Linux共享内存对象,shm_open,mmap
- STL容器里存放对象还是指针
- STL:如何理解容器对象的比较
- [C++]STL容器Vector的内存释放
- 从零开始学C++之STL(八):函数对象、 函数对象与容器、函数对象与算法
- STL容器里存放对象还是指针?
- STL 查找vector容器中的指定对象:find()与find_if()算法
- C++容器模板在共享内存中的使用
- C++容器模板在共享内存中的使用
- java程序运行时对象是怎么进行放置安排? 内存是如何分配的呢?
- STL容器比较和基本对象
- Redis深入之内存回收和对象共享
- 关于容器类对象的ForEach: stl 和boost