Overview
Features
Download
Documentation
Community
Add-Ons & Services

virtual file in shared memory?

Please post support and help requests here.

virtual file in shared memory?

Postby sgsoft » 07 Jun 2012, 17:06

Can I creates a virtual file with the contents located in the shared memory ?

like this:

Code: Select all

File f("/tmp/foo.db3");
SharedMemory(f,AM_READ|AM_WRITE);
.....



above shared memory mapped file can be access by another process?
sgsoft
 
Posts: 34
Joined: 03 Jul 2010, 12:26

Re: virtual file in shared memory?

Postby alex » 08 Jun 2012, 04:37

It depends. EG:
The Single UNIX ® Specification, Version 2 wrote:It is unspecified whether the name appears in the file system and is visible to other functions that take pathnames as arguments.
alex
 
Posts: 1120
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests