Re: How to write a thread application
Posted By:
Simon_Ablett
Posted On:
Wednesday, June 12, 2002 03:24 AM
Simplest way is to have the application running constantly. Sleep for a period of time (3 hours!!). Wakeup. Perform its action and sleep again. No need for threads.
Alternatively, sleep for a period. Wakeup. Check the system clock against a last recorded value. If the difference is 3 hours then perform the action. Otherwise sleep again and so on.
Regards,
Simon