in reply to Re^2: Reading and writting data in a text file with several scripts simultaneously time synchronization problem
in thread Reading and writting data in a text file with several scripts simultaneously time synchronization problem
I would go with the database if that is desirable since it might well make future reporting easier to manage. But you could always use the Benchmark module to test out different methods.
As for flock and INI files, I presume you mean a typical foo.ini file for config variables. I don't see why you would have any conflicts unless the file is remote mounted over a network. Some versions of flock might have problems with that. YMMV.
The main issue is to devise a decent semaphore scheme that removes any dependence upon sleep() to synchronize the various parts other than establishing a timing loop for polling the semaphore.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reading and writting data in a text file with several scripts simultaneously time synchronization problem
by thanos1983 (Parson) on May 19, 2014 at 22:19 UTC |