Multiple threads in vector