共享内存malloc库 [英] shared memory malloc library

查看:201
本文介绍了共享内存malloc库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


i需要管理共享内存中的堆。

有没有人知道可移植(win32 + mac + posix)c实现

为此。

Hello,

i need to manage a heap in shared memory.
Does anybody know about a portable (win32+mac+posix) c implementation
for this.

推荐答案

在文章< 11 ********** ************@o40g2000prh.googlegroups .com> ;,

llothar< ll ***** @ web.dewrote:
In article <11**********************@o40g2000prh.googlegroups .com>,
llothar <ll*****@web.dewrote:

>我需要在共享内存中管理堆。
有人知道一个便携式(win32 + mac + posix)c实现

>i need to manage a heap in shared memory.
Does anybody know about a portable (win32+mac+posix) c implementation
for this.



我相信共享内存的win32接口与posix接口不同,因此我知道,没有<可以在这三个平台之间移植的
实现。

可能有一个实现具有条件编码这些平台的b / b
。但共享内存不是标准C

的一部分,因此不适合comp.lang.c;你应该在OS特定的新闻组中询问




-

法律 - 它是商品

- Andrew Ryan(环球邮报,2005/11/26)

I believe that the win32 interface for shared memory is different
than the posix interface, so as best I know, there is no
implementation that is portable between those three platforms.
There might be an implementation that has conditional coding for
those platforms. But shared memory is not part of standard C
and so is not really appropriate for comp.lang.c; you should ask
in OS-specific newsgroups.

--
"law -- it''s a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)


llothar写道:
llothar wrote:

>

i需要管理共享内存中的堆。有没有人知道

这是一个便携式(win32 + mac + posix)c实现。
>
i need to manage a heap in shared memory. Does anybody know about
a portable (win32+mac+posix) c implementation for this.



只需使用malloc。它在所有C系统中都是一致的。


-

< http://www.cs.auckland.ac.nz/~pgut001/pubs /vista_cost.txt>

< http://www.securityfocus.com/columnists/423>

< http://www.aaxnet.com/editor /edit043.html>

cbfalconer at maineline.net


-

通过 http://www.teranews.com

Simply use malloc. It is consistent over all C systems.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline.net

--
Posted via a free Usenet account from http://www.teranews.com


CBFalconer< cb ******** @ yahoo.comwrites:
CBFalconer <cb********@yahoo.comwrites:

llothar写道:
llothar wrote:

>我需要在共享内存中管理堆。有没有人知道
便携式(win32 + mac + posix)c实现。
>i need to manage a heap in shared memory. Does anybody know about
a portable (win32+mac+posix) c implementation for this.



只需使用malloc。它在所有C系统上都是一致的。


Simply use malloc. It is consistent over all C systems.



是的,但它没有处理共享内存,无论是什么。

< OT>据推测它指的是记忆在进程之间共享;

标准C没有这样的概念。< / OT>


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst> ;

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

Yes, but it doesn''t handle "shared memory", whatever that is.
<OT>Presumably it refers to memory that''s shared between processes;
standard C has no such concept.</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


这篇关于共享内存malloc库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆