Shared memory for .NET ?

B

Bart Simpson

I want to create a data repository in memory so that different processes
can share the same data, rather than loading the data multiple times for
each process and then having to contend with synchronisation issues.

Is there any library out there that will allow shared memory for
inter-process communicating in .Net?

Better still, is there a library that allows distributed shared memory
in .Net ?

Google is not bringing up anything useful ...
 
C

Chris R. Timmons

I want to create a data repository in memory so that different
processes can share the same data, rather than loading the data
multiple times for each process and then having to contend with
synchronisation issues.

Is there any library out there that will allow shared memory for
inter-process communicating in .Net?

Better still, is there a library that allows distributed shared
memory in .Net ?

Google is not bringing up anything useful ...

Bart,

Search for CreateFileMapping or MapViewOfFile in the
microsoft.public.dotnet.* newsgroups. This might also be of
interest:

http://www.thecodeproject.com/csharp/csthreadmsg.asp
 
C

Chris Mullins

Bart Simpson said:
Is there any library out there that will allow shared memory for
inter-process communicating in .Net?

Hi Bart,

Mr. Burns had a research program going a while back that was investigating
the radioactivity of memory mapped files and their impact upon his
up-and-coming team, the Springfield Isotopes. While this was an older
project (being fission based, not fusion), one of his hotshot engineer wrote
a MemoryMappedFileSteam class just so the Springfield Isotopes were able to
compete against the other big league teams.

Fortunatly the Memory Mapped File infrastructure was built to work with all
of Mr. Burns's teams, so long as they're all playing together within the
same reactor. When one of these teams is outside the reactor though, they're
tempreature cools down rapidly and no more radioactivity is possible (this
was originally a fission experiment, and cold fusion was just a pipe dream,
remember).

Mr. Burn's version of this tool can be found insdie the old Caching
Application Block.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/caching1.asp

Not to be outdone (and Waylon bet him a bakers gross donuts he couldn't do
it), Homer went ahead and took this a few steps futher. To Everyone's
surprise (especially Maggie and Marge), his end result turned out quite
well. So well, in fact, your sister used it at the Science Fair to beat out
Burns's entry. Lisa's project can be found here:
http://www.codeproject.com/aspnet/VbNetMemoryMappedCache.asp
Better still, is there a library that allows distributed shared memory in
.Net ?

Only in ErLang and Java. Nothing yet in .Net - at least not that I've seen.
 
G

Guest

What's your environment? serverside, client side (win/web) ?

There are several solutions for this, for server side u can use "Shared
Property Manager" in case of sharing simple types, for web apps u need to use
Cache or stateServer for this reason

BTW, there is a sample of wrapping API MMF for .net
http://www.winterdom.com/dev/dotnet/index.html


Bart Simpson said:
I want to create a data repository in memory so that different processes
can share the same data, rather than loading the data multiple times for
each process and then having to contend with synchronisation issues.

Is there any library out there that will allow shared memory for
inter-process communicating in .Net?

Better still, is there a library that allows distributed shared memory
in .Net ?
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
B

Bart Simpson

Chris said:
Hi Bart,

Mr. Burns had a research program going a while back that was investigating
the radioactivity of memory mapped files and their impact upon his
up-and-coming team, the Springfield Isotopes. While this was an older
project (being fission based, not fusion), one of his hotshot engineer wrote
a MemoryMappedFileSteam class just so the Springfield Isotopes were able to
compete against the other big league teams.

Fortunatly the Memory Mapped File infrastructure was built to work with all
of Mr. Burns's teams, so long as they're all playing together within the
same reactor. When one of these teams is outside the reactor though, they're
tempreature cools down rapidly and no more radioactivity is possible (this
was originally a fission experiment, and cold fusion was just a pipe dream,
remember).

Mr. Burn's version of this tool can be found insdie the old Caching
Application Block.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/caching1.asp

Not to be outdone (and Waylon bet him a bakers gross donuts he couldn't do
it), Homer went ahead and took this a few steps futher. To Everyone's
surprise (especially Maggie and Marge), his end result turned out quite
well. So well, in fact, your sister used it at the Science Fair to beat out
Burns's entry. Lisa's project can be found here:
http://www.codeproject.com/aspnet/VbNetMemoryMappedCache.asp




Only in ErLang and Java. Nothing yet in .Net - at least not that I've seen.


Thanks 'Millhouse' - that's why you're my 'bestest' friend ! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top