[REBOL] Re: Concurrent access to data file
From: kracik:mbox:dkm:cz at: 19-Feb-2001 15:36
Hi,
the problem was discussed here some time before. You need some atomic
operation, which cannot be successfully done by two processes at the
same time. One such operation is in most OSes (including Windows NT)
local file rename. Any operation on network drives (NetBios or NFS) is
not atomic, so you cannot rely on it when synchronizing multiple PCs -
file locking suggested by Brett Handley is reliable only with a local
file, not a file on a network disk.
I think that you should use TCP port on the server as suggested by
Brett Handley. There are also several distributed mutual exclusion
algorithms that don't require a central server, look at this paper for
more information:
http://www.cse.iitk.ac.in/~deepak/cs632/mutual-exclusion.ps
HTH,
--
Michal Kracik
CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN
wrote: