Hi All
I need to access(only read) the data in std::list
from one or more threads running in my application.
This list will be created only once at time of booting an application and after all this list will be reading
from muliple threads...say I will be doing this
for (std::list <iterator>iii=list->begin();ii!=list->end();ii++)
which read the list from muliple threads.
now my question is will it create any access violation problem if i didn't synchronize the access to list?
I ran the application without any synchronization prirmitives. i didn't face nay problem. but since I am doubt about this I would like to confirm it .
As per my understanding even in mutithreading application only one thread executes at run time by OS. since I am not updating list from muliple threads and all the threads are reading the list it may not necessary to give exclusive access to list..is it correct?
please put me in correct way if I am doing wrong