# Concurrency in mongrel

**URL:** <https://www.ruby-forum.com/t/concurrency-in-mongrel/118690>\
**Category:** Rails\
**Created:** [October 30, 2007, 3:15am UTC](https://www.ruby-forum.com/t/concurrency-in-mongrel/118690 "2007-10-30T03:15:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 30, 2007, 3:15am UTC](https://www.ruby-forum.com/t/concurrency-in-mongrel/118690/1 "2007-10-30T03:15:53Z")

</div>

Hi,

I would like to know if it is possible to implement concurrency in  
mongrel. I have a simple controller in my application which writes  
data to a file. How can I synchronize the file access?  
I’ve read a few posts on the net regarding the issue, and everyone is  
saying that it should not be done since Rails is not thread-safe.  
However, this seems to be a pretty common thing. Is there no solution  
for this problem?

Thanks,  
Tiberiu
