Slashdot Mirror


More Effective Use of Shared Memory on Linux

An anonymous reader writes "Making effective use of shared memory in high-level languages such as C++ is not straightforward, but it is possible to overcome the inherent difficulties. This article describes, and includes sample code for, two C++ design patterns that use shared memory on Linux in interesting ways and open the door for more efficient interprocess communication."

1 of 280 comments (clear)

  1. Java has the answer, as usual... by barbazoo · · Score: 0, Troll
    public class Montior {

    public synchronized foo() { <access shared data> }

    }

    or

    synchronized (theMonitor) { <do stuff with shared data> }