有沒有比put
和get
更合理的方法從memory system
得到一個布爾值,但是沒有使用任何TCP/UDP
或local file system
方法?在Java中,有沒有什麼方法可以共享內存位置來交換一些實時的小包?
For example:
#both running as 1 application separately
$ java -cp /var/tmp/J.jar System.Backend
$ java -cp /var/tmp/J.jar System.Frontend
凡Backend
做內存分配,並且前端讀取它的飛行,他們都將能夠使用TCP/UDP也沒有文件系統。
所以沒有PipedInputsstream? – 11684
也許這些可以幫助:http://stackoverflow.com/questions/1125534/what-is-the-best-way-to-access-memory-in-java-similar-to-mmap http://stackoverflow.com/questions/1491519/java中的shared-memory-in-java和http://www.coderanch.com/t/441876/java/java/does-java-support-shared-memory –
有趣的問題Yum ! – Coffee