Acces to XML or read file first
I am making a programm that runs 24/7
At startup a thread is started to check an event (every 10 seconds)
When the event occurs (+- 40 times a day) another thread is started shortly to thread the event (takes about 20 seconds).
This short threads nees some configuration data from an XML.
What is the best way to give this data to the thread :
1/ each short thread read directly from the XML (24/7 the same data)
2/ The configuration data is red into the programand the thread gets it from a static class