Author: dotnetCarpenter | Posted on: 7/21/2008 1:32:18 AM | Views : 890

Hi all.I'm
re-developing a Data Access Layer Manager (codeplex.com/dalm) and have
some architectural doubts about some of the I/O operations.The problemAll
queries are read from an XML file which is loaded into memory on first
run. When a query is requested to be executed, the DALM will read from
memory. Now, if the query doesn't exist in memory, the XML file has to
be read again. But while reading the XML file, queries that does exist
in memory should still be retrieved and executed. I have been using
ADO.NET DataSet to read XML until now.1st solutionWhen
the a query is not found, the thread will continue to a "read xml
statement" which will be locked using the lock keyword. This way other
treads will still be able to access the DataSet. The problem is that
the threads that also didn't find their query wil ...

Go to the complete details ...