Home All Groups Group Topic Archive Search About
Author
16 Jun 2006 1:24 PM
Sam
Hi all,

Would some one give me a hand? I have been given a task to monitor status of
records in database and if the status of the records change, I have to send
email out to customers. My questions are:

1. Do I have to write multi thread windows service (I don't know much about
multi threading)?
2. If I want to have my service to check every 15 minutes, is it best to use
thread.sleep method to do this or timer control?

Thanks

Sam

Author
16 Jun 2006 1:37 PM
Charlie Brown
Sam,
It doesn't have to be complicated at all.  I have a windows service
that checks to see if Employees are clocked in and if not, sends an
email to their managers.  It's very simple and not a lot of code.  No
multthreading involved and it use 1 timer.


Sam wrote:
Show quoteHide quote
> Hi all,
>
> Would some one give me a hand? I have been given a task to monitor status of
> records in database and if the status of the records change, I have to send
> email out to customers. My questions are:
>
> 1. Do I have to write multi thread windows service (I don't know much about
> multi threading)?
> 2. If I want to have my service to check every 15 minutes, is it best to use
> thread.sleep method to do this or timer control?
>
> Thanks
>
> Sam
Author
18 Jun 2006 7:05 PM
askhuy
That's what I thought thanks for the suggestion Charlie
Sam

Show quoteHide quote
"Charlie Brown" <cbr***@duclaw.com> wrote in message
news:1150465043.954224.178120@r2g2000cwb.googlegroups.com...
> Sam,
> It doesn't have to be complicated at all.  I have a windows service
> that checks to see if Employees are clocked in and if not, sends an
> email to their managers.  It's very simple and not a lot of code.  No
> multthreading involved and it use 1 timer.
>
>
> Sam wrote:
>> Hi all,
>>
>> Would some one give me a hand? I have been given a task to monitor status
>> of
>> records in database and if the status of the records change, I have to
>> send
>> email out to customers. My questions are:
>>
>> 1. Do I have to write multi thread windows service (I don't know much
>> about
>> multi threading)?
>> 2. If I want to have my service to check every 15 minutes, is it best to
>> use
>> thread.sleep method to do this or timer control?
>>
>> Thanks
>>
>> Sam
>