By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,601 Members | 989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,601 IT Pros & Developers. It's quick & easy.

Loading a file only once then sharing it...

P: 24
I have a class has a number of class variables. I created a save() method that saves the value of these variables to a file on hard disk, using a binary formatter (c#).

now, i need to create load this object from hard disk many times concurrently (using threads).

How can I avoid having to read the file from disk every time? i.e. i would like to load the object once, then just create copies of the object in memory...
Apr 22 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.