阅读背景:

我可以用shmctl调整Linux共享内存吗?

来源:互联网 

I have a C++ application that allocates shared memory on a Linux system via shmget(2). The data that I store in the shared memory grows periodically, and I'd like to resize the shared memory in a way analogous to the way realloc() grows regular memory. Is there a way to do this? I found a doc on IBM's site that mentions a SHM_SIZE command, but the Linux and BSD manpages do not have it, even in the Linux-specific sections.I have a C++ application that allocates shared




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: