title: Is ofstream thread safe?
body: <p>I am working on a program, which uses multiple <code>std::ifstream</code>s for reading a binary file, one <code>std::ifstream</code> for each thread. Now I need to know, if <code>std::ofstream</code> is thread-safe on Windows and Linux for writing in a same file. I am using using only one <code>std::ofstream</code> and using for multiple threads.<br>
  I am reading different blocks using using each thread and writing those block in output file using <code>seekp()</code> and <code>write()</code>. Currently it is working for me but whether it is problematic for big files. </p>
  
  <p>Is <code>std::ofstream</code> thread safe?</p>