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."

3 of 280 comments (clear)

  1. C++ has bigger memory issues by nagora · · Score: -1, Flamebait
    I think getting a garbage collector mandated as part of the language would be a much bigger step to making C++ a useful choice.

    In fact, forget it; just use an actual OO language instead.

    TWW

    --
    "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    1. Re:C++ has bigger memory issues by nagora · · Score: 1, Flamebait
      I tell you what though, C++ is still around after all this time.

      Mostly because it allows sloppy, C-style, programming which is easy. It also leaks like a sieve most of the time and has all the security problems seen in C. It doesn't HAVE to but its design means that it does. And it's ugly as hell.

      Easy programming languages always hang around longer than they're needed because most programmers, sad to say, are uninterested in quality and very interested in meeting deadlines.

      There is still no successor to C++.

      That may be true, but it doesn't make C++ any better.

      TWW

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
  2. /. or newbie nanny by Anonymous Coward · · Score: -1, Flamebait

    kids and newbies, welcome to all new slashdot newbie poo site. it teaches u...u guessed it, to puke a lot of patterns into ur manager's pocket. if u thought programming was an art, forget it. the guy who thought that up was a fool. pls feel free to learn BS here and close ur mind plz; /. will provide u with all the programming patterns u need.

    WTF? u disagree...oh...it is IBM branded puke!!!