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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.