G
Guest
Hello,
Just some background: I'm developing an application that basically executes
series of tasks. So far I have 2 group of tasks run on different threads (2
different threads). Which run in parallel. Now, these threads need read-only
access to app config settings Object. So, I have one public class with 1
static field - Hashtable which holds key/value configs settings. So far,
application runs in debug mode without any errors.
Is that a good design? Do I need to lock or synchronize access to that
static member? What's the "best practice" design for this kind of scenario?
Thank you for your help.
Just some background: I'm developing an application that basically executes
series of tasks. So far I have 2 group of tasks run on different threads (2
different threads). Which run in parallel. Now, these threads need read-only
access to app config settings Object. So, I have one public class with 1
static field - Hashtable which holds key/value configs settings. So far,
application runs in debug mode without any errors.
Is that a good design? Do I need to lock or synchronize access to that
static member? What's the "best practice" design for this kind of scenario?
Thank you for your help.