# Read a tfile while writing with another process

**URL:** <https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608>\
**Category:** ROOT\
**Created:** [December 12, 2014, 1:32pm UTC](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608 "2014-12-12T13:32:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tquante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/87869e/32.png) [@tquante](https://root-forum.cern.ch/u/tquante)\
**Post date:** [December 12, 2014, 1:32pm UTC](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608/1 "2014-12-12T13:32:32Z")

</div>

Hi,

I like to use the new THttpServer for online monitoring of a detector setup. I wonder if it is save to open a TFile with the “READ” option in another process, if it still a part of a DAQ writing process.

I could imagine some crash scenarios if the read process accessing an event during the write process.  
I accidently opened some TFiles during the write and nothing bad happens, but I do not want to access them continuously if there could be cases that corrupt the data file

Thomas

---

_[View the full topic](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608)._
