阅读背景:

Multiple Threads reading from the same file(转载)

来源:互联网 


 

I have a xml file that needs to be read from many many times. I am trying to use the Parallel.ForEach to speed this processes up since none of that data being read in is relevant as to what order it is being read in. The data is just being used to populate objects. My problem is even though I am opening the file each time in the thread as read only it complains that it is open by another program. (I don't have it opened in a text editor or anything :)) I have a xml file that needs to be r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: