Quote:
Originally Posted by matrixmadhan
But again the granularity between sleeping and checking for any log messages is purely experimental and you have to give a random number for that.
|
You can't use sleep to reliably synchronise between processes, you need to use events and state. In UNIX the the best two events are
(a) a process terminating yielding an exit code
(b) reading of a stream