This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于shared region的“numEntries”的问题



大家好

当我使用共享存储区时,我遇到了这个问题:

1.我设置了3个共享区,并且配置:

        SharedRegion.numEntries = 3;

        之后我让着三个共享区都做如下配置:

        ownerProcId: 0,

        此时运行程序并不会报错。

2.但是当我将2号共享区的配置改为

        ownerProcId: 1

        之后便会有A_idTooLarge: id cannot be larger than numEntries的提示

请问这是什么方面的问题,我能在哪里找到解决办法

另外如果将ownerprocId设为不是0的数值的话该核在相应空间内的性能是否会有好处。

作为新手,问题可能缺乏深度,感谢相关的解答