Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Schedule
Message
 
 
À
10/01/2002 13:02:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00603078
Message ID:
00603083
Vues:
17
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform