General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only