Output Processing Running
Kenneth Brody
kenbrody at bestweb.net
Fri Apr 30 05:11:19 PDT 2004
Robert Haussmann wrote:
[...Using file I/O to read the lockfile ...]
> I've always wondered about such a technique. If you do this,
> don't you run the risk of having fP blow up because the
> LOCKFILE itself is locked? (more likely to happen if the
> files are used by a large number of processes).
The lockfile is only locked while being updated, which only takes
a fraction of a second. If it happened to be locked when you tried
to read it, one of two things would happen (depending on platform).
Either it would wait that fraction of a second and then read it, or
it would return an error that the file was locked.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list