On a multi-thread application, is it safe to use a global array of strings across the threads if they are reading only and nothing is changing the data while it runs? In other words if the string array is filled before the threads run and nothing is adjusting the data in anyway while it runs. The only thing the threads are doing is array scans and reading the data. Could that cause memory corruption? And if so, how? :think:
PS. I know this is not ideal and I would love to find a way to avoid globals and statics. But speed is critical on this app and so far in my testing nothing else has come close to the same speed.
:daz:
PS. I know this is not ideal and I would love to find a way to avoid globals and statics. But speed is critical on this app and so far in my testing nothing else has come close to the same speed.
:daz:
Comment