# Read histogram from TFile while actively writing to it (with example)

**URL:** <https://root-forum.cern.ch/t/read-histogram-from-tfile-while-actively-writing-to-it-with-example/28273>\
**Category:** ROOT\
**Tags:** hist\
**Created:** [March 11, 2018, 10:37pm UTC](https://root-forum.cern.ch/t/read-histogram-from-tfile-while-actively-writing-to-it-with-example/28273 "2018-03-11T22:37:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![svpaulauskas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/svpaulauskas/32/13788_2.png) [@svpaulauskas](https://root-forum.cern.ch/u/svpaulauskas)\
**Post date:** [March 12, 2018, 12:14pm UTC](https://root-forum.cern.ch/t/read-histogram-from-tfile-while-actively-writing-to-it-with-example/28273/6 "2018-03-12T12:14:47Z")

</div>

Then I’m confused by the suggestion made [here](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608/6). Why was this even suggested as a solution if that process isn’t allowed? What would be the correct way to handle this?

---

_[View the full topic](https://root-forum.cern.ch/t/read-histogram-from-tfile-while-actively-writing-to-it-with-example/28273)._
