Possible Duplicate:
Is stl vector concurrent read thread-safe?
I have a multi-threaded program that has a certain amount of workers, each worker has a 'workerID' which is essentially just a unique integer for that thread. I want to use a vector of structs to manage these threads. my question is, if thread 4 wants to access myVector[4] at the same time as thread 8 wants to access myVector[8], am I going to have a problem?