Unix Shared Memory

Category: C & C++ - Miscellaneous

If you want to use multiple blocks of shared memory in a single process you might need to pass a different id to ftok() for each one.In any case, the main entry point is open_shm(). It returns a block of shared memory of the specified size. If justreading is 1, then you access what has been written to that block of shared mem. If it's 0, then you create a new one with undefined contents. Date: 04 May, 2012


Unix Shared - Shared Memory - C Snippets - Unix - Shared - Memory

Homepage: http://snippets.dzone.com

Developer: snippets.dzone.com

License: Freeware

Operating System: Windows, Linux

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Some semi-Posix compliant macros for DOS/Windows/NT.

developer Developer: snippets.org
license License: Freeware
operating systems Operating System: All


Presented with hex such as 0x12345abc perhaps there is a spot in there which represents an ascii char - such as 53 would be 'S'.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Here's a little function to decode part of a query string that has been encoded as per the HTML specification with %xx notation, where xx is the hexidecimal representation of a character.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


A program to test libCoroutine.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


This code count the chars of a file.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


The XOR swap algorithm is an inefficient method of swapping two variables.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


It simulates behavior of clear/cls.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


A program to test libCoroutine.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


This code count the chars of a file.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux