Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hendler

    Newbie: Shared Memory Size: shmget()

    Hi Sambones. Good insight. No, it doesn't need to survive a reboot. That's a gotcha for some people. The identifier is itself stored in memory, in the application. So if I understand what you mean by file identifier (generated by ftok, shmget, and shmat) there should be no disk access. Also...
  2. hendler

    Newbie: Shared Memory Size: shmget()

    Hi Salem, The client server model works in everything else I do in web development. Databases like MySQL are in-memory and quite fast. I used to use HeapTables in MySQL for similar goals. The key here is that the "data" and content is inherently in flat files. After doing more research I am...
  3. hendler

    Newbie: Shared Memory Size: shmget()

    Hi SamBones, I guess my definition of beginner is different! Yes, I understand the differences between malloc and shmget. What I am trying to do is persist memory (some strings, and preferably a struct). The application doesn't run as a dameon - the applications life span is short, so I don't...
  4. hendler

    Newbie: Shared Memory Size: shmget()

    Hi All, This is my first post - and I am just beginning C so your help is greatly appreciated. I'm trying to understand the size_t param for shmget() as well as the limits of shared memory in general. I'm on Linux for now, but want this to be cross platform. When creating a shared memory...

Part and Inventory Search

Back
Top