像清单2这样创建共享内存对象。
例如,要想在自己的代码中使用共享内存,就使用清单1所示的include。
For example, to use Shared memory in your code, use the include shown in Listing 1.
可以使用清单1中的命令行选项控制缓存的最大大小,但是请注意,这个最大大小可能受到操作系统共享内存限制的约束
You can control the maximum size of the cache by using the command line option in Listing 1, but note that this maximum size may be constrained by operating system restrictions on shared memory
如果希望使用hmc命令行创建共享内存池,应该使用清单1所示的chhwres命令。
If you want to create the Shared memory pool using the HMC command line, use the chhwres command as shown in Listing 1.
在清单4中,使用open_only和read_only属性创建共享内存对象。
In Listing 4, you create the Shared memory object using the open_only and read_only attributes.
您可以使用清单7中的命令来构建共享库libcalculator.so 。
The shared library, libcalculator.so, you build using the command in Listing 7. The libcalculator.so
您可以使用清单7中的命令来构建共享库libcalculator.so 。
The shared library, libcalculator.so, you build using the command in Listing 7. The libcalculator.so
应用推荐