On Wed, 16 Jul 2003, Timo Sirainen wrote:
> rename(). You rewrite the file and rename it over the old one. Next
> synchronization check notices this and reopens the file.
>
> This would require exclusive locking for all modifications though.

Yes; otherwise you have to synchronize changes in the old file with the
new file.  Also, this assumes that all the synchronization checks will
happen punctually.

IMHO this, and the copying, is much more costly.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to