T
Tim Barber
I have created a Windows service that has two listening sockets that
appear to be working like they should. Once data comes in from sockets,
they do as little work as possible before they make a call to the
ThreadPool to keep the "system thread" work to a minimum.
Here are my two question regarding the "callback" events when data
actually comes in. Is there a single thread assigned from the frameworks
that does the callback work for the sockets or will each socket have its
own thread basically? When these threads are running the method
associated with read callback event, is that thread guaranteed to run to
completion before being interrupted (meaning do I need to worry about
making those methods re-entrance safe)?
Tim
appear to be working like they should. Once data comes in from sockets,
they do as little work as possible before they make a call to the
ThreadPool to keep the "system thread" work to a minimum.
Here are my two question regarding the "callback" events when data
actually comes in. Is there a single thread assigned from the frameworks
that does the callback work for the sockets or will each socket have its
own thread basically? When these threads are running the method
associated with read callback event, is that thread guaranteed to run to
completion before being interrupted (meaning do I need to worry about
making those methods re-entrance safe)?
Tim