Well, so indeed, the temporary file solution seems a good one, then.

-- 
laurent

2009/2/15 James Reeves <weavejes...@googlemail.com>

>
> On Feb 14, 10:58 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote:
> > You could maybe solve the read problem by also embedding, in the name of
> the
> > file, its intended content size ?
>
> That solves the read problem, but not the conflicting write problem.
> It also seems harder than using a temporary file.
>
> > If the file is immutable, I don't understand why you could have
> concurrency
> > regarding the act of writing ?
>
> Because two threads may attempt to save the same bit of data at the
> same time. As the disk its saving to may be RAIDed, or even
> distributed, I don't want to limit all file writing to a single
> thread. I want to make it possible for one thread to write "a" whilst
> the other writes "b".
>
> - James
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to