Question: why stl is not thread safe?
Answer: STL is not thread safe, get over it. ... STL is plain C++ code, compiler doesn't even know the existence of the STL, it's just C++ code released with your compiler, what the STL has in common with the C++ language is the fact that it's standardized.