TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

Reply
 
Thread Tools Display Modes
Old 15-12-2007, 02:26 AM   #1
Ben Voigt [C++ MVP]
Guest
 
Posts: n/a
Re: thread scheduling, how??


"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:df9f3beb-9094-452c-936f-d77130f4c171@b1g2000pra.googlegroups.com...
> On Dec 14, 9:31 am, "Jeff" <do...@spam.me> wrote:
>> I'm working on a winservice created in .NET 2.0. Now I want to do some
>> modications to this winservice. I want this winservice at every start of
>> a
>> new month to start a thread which pulls data from several webservices and
>> saves these data to table...
>>
>> So I'm wondering how to go about implementing this so that this thread is
>> automatically started at a specific time. (lets say 03:30 am at day 1 on
>> each month).
>>
>> maybe the winservice framework has some features for this?

>
> Is there any reason to put this into the windows service rather than
> just using a Windows scheduled task?


The other option, if a service is needed, would be to leave a thread
sleeping with a waitable timer, not sure what the .NET wrapper for the
waitable timer API is.

But definitely better not to have a service started when not needed.

>
> Jon


  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 05:38 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional