Timers, threads, and Windows Services

J

jeff

Greetings;
Newbie here, please forgive my ignorance of the vb.net
threading model.

I am developing a windows service which is driven by a
variable number of timers. All timers invoke the same
event handler, and each invocation sends a command to
another service. What are the threading considerations
given this scenario?

1. What happens in the main service if two timers fire at
virtually the same time? Should the timer event handler
spin off a new thread to command the downstream service?

2. What happens if the downstream service receives
additional commands before the original is done
processing? Should the downstream service spin off
threads to process as well?

TIA
 
C

Cor

Hi Jeff,
An anouncement in this group
-------------------------------------------------------------------------
Do you have questions about how to create multi-threaded applications? Or do
you wonder about what those threads are actually doing? Then join members of
the Visual Basic and .NET Framework teams as they answer your questions
about using threading with Visual Basic .NET.

Date:
November 25, 2003

Time:
1:00 - 2:00 P.M. Pacific time
4:00 - 5:00 P.M. Eastern time
21:00 - 22:00 BST/BST
(For a list of local time zones relative to GMT, please see
http://msdn.microsoft.com/chats/timezones.asp.)

Outlook Reminder:
http://msdn.microsoft.com/chats/outlook_reminders/VB_Nov25.vcs

Location:
http://msdn.microsoft.com/chats (then click the name of the chat to enter
the chat room)

For more information about Visual Basic .NET, see
http://msdn.microsoft.com/vbasic/
To see a list of upcoming chats or set a reminder for this chat, see
http://msdn.microsoft.com/chats.
For archives of previous chats, see
http://msdn.microsoft.com/chats/recent.asp.

Thanks!
Jason Cooke
VB.NET Team
========
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
(c) 2003 Microsoft Corporation. All rights reserved.
 
J

Jeff

Thanks, but my corporate firewall doesnt allow your chat
server today. Can you post the question for me during
the chat? I'd really like to hear the answer

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top