Race Conditions in pthreads

I have a piece of multi threaded code which does some number crunching. At some point, one of the threads generates a certain data which must be shared with all other threads. Now, once this data is generated, it will NOT be modified at all in any way and just needs to be read by different threads.

Is it safe to allow all the active threads to read this data without protecting it with mutexes. None of them will modify it and it does not matter in what order the threads read it. Will it affect the performance in any way ?
I have not had any experience doing this sort of thing, so don't count on what I say too much. But from what I have read, as long as they are not changing it any anyway it should be ok. From a race conditions point of view it should be ok anyway. Whether some other weird thing happens, or if it affects performance I have no idea.
Topic archived. No new replies allowed.