阅读背景:

Java中共享内存中值的原子获取和递增功能

来源:互联网 

I have several processes (on the same computer) which together need to sequentially access the elements of an array in shared memory. To do this I want to store the current index into the array as an int in shared memory, and for each of the processes to be able to get the current value of the index and increment it by a fixed value in one single atomic operation. How can I do this in Java?I have several processes (on the same computer)




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

分享到: