Static class accessed from many threads of different types
Posted on 2006-10-30
I have one single datatable object in a static class.
i want multiple threads of different classes themselves to be able to access this datatable through the static classe's single public static property.
i dont think reads are a problem(correct me if I am wrong)
but I am concerned about writes
if it were threads all of the same class type accessing it i could use monitor.enter and monitor.exit
but unfortunatly the threads come from different classes