Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
I have a file out on a server that people connected to the network use to add transaction records to. They add the records by USEing the file and appending from their local file. Several employees use this file, the append takes a minute or so...works great.
Periodically another user USEis it and reads the accumulated records into his local file for processing. Works great.
The number of users on the system now has greatly increased and every once in awhile two of them try to append to the file and one gets an error. What should be done to lock the file...Do I use the flock() function?
TIA
Chris
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement