Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Schedule
Message
 
 
To
10/01/2002 13:02:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00603078
Message ID:
00603083
Views:
18
Maybe you can use Windows Scheduler?

>Hi,
>
>I am working on a app that will be continously running. It will check for a file and if the file is there, it will do some processing with it. Anyways, it should check for the file only at certain times. (20 minutes after every hour) So at 12:20am, 1:20am, ..., 12:20pm, etc. I was wondering what would be the best way to set up this schedule without taxing the computer's processor too much. Here are some ideas I thought of.
>
>1. Make a Schedule table. have a function thats a continous do while loop. At the top of the do while loop check to see if the current time is equal to a time in the table. If so do some processing, otherwise keep looping. (I think this solution would be take up a lot of processing power)
>2. Same as 1., but use a timer to go off every second instead of a do while loop. I think this one would use lots of processing power too.
>
>I am sure people do stuff like this all the time and I am sure there are better ways of doing this.
>
>Thanks!
>Chris
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform