Go Premium for a chance to win a PS4. Enter to Win


How would this be designed in the .NET world?

Posted on 2011-03-05
Medium Priority
Last Modified: 2012-06-27

Assume that on a Windows 2003 or 2008 server anywhere from 5 to 15 services all use the same list.  The list is just a hash table of keys and values that change once a week.  Every service has a read-only interface.  No service can change the content of the hash table.  We already have a dll that loads the hash table and this dll is referenced by every service.  So we have between 5 and 15 copies of the same hash table in memory.  Constantly being loaded and released as the services start and stop.

How can I load a single instance of this hash table into memory and expose it to any service or process that cares to read it?  We will be using .Net c# 4.0.  Could you point me towards a pattern or other reading?

Thanks for your opinion.
Question by:wilfordrocks
LVL 10

Accepted Solution

Jacco earned 2000 total points
ID: 35045145
This is a nice approach. It stays away from SharedMemMaps :-)


Author Closing Comment

ID: 35108206
Thank you.  Excellent link.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question