Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overhead using System.Timers.Timer
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00940086
Message ID:
00940436
Vues:
16
Rick,
Thanks for the reply. The firing interval indicated in my original message might have been a little high (and will be user defined i.e. the user can change it) but it probably will not be less than one second.

Have you ever created a windows service that is using a timer in this way before? Any comments would be appreciated.

Thanks again for your reply and explanation.

Sincerely,
Einar

>Einar,
>
>Timers are pretty efficient. They're basically a threading mechanism that fires off new threads (or threadpool threads really). If I remember right these timers are pretty close to underlying OS APIs so there's very little overhead for them, especially in low firing intervals as yours (many seconds).
>
>Remember too that timers fire events on a separate thread, so they don't genearlly hold up the main app. Just make sure you keep the code in the handler simple and quick and if it's not to utilize Application.DoEvents() liberally.
>
>+++ Rick ---
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform