S
Simon Niederberger
Hi
I've written a Windows Service which has
- several (0-100) listeners threads which spawn worker threads based on
events, timers etc
- several (0-300) worker threads which handle data (message based) and
terminate after processing
I'm wondering what exactly happens when I stop the service. I don't see an
ThreadAbortedException, but I'm worried my worker threads might be
terminated in the middle of processing. My Server.OnStop is empty.
Does Windows wait for all threads to terminate in a given timespan, then
send an Abort to all running threads? Or does it send Abort directly?
Any help, including pointing to good URL (haven't found any so far) or
better newsgroup is very much appreciated.
Simon
I've written a Windows Service which has
- several (0-100) listeners threads which spawn worker threads based on
events, timers etc
- several (0-300) worker threads which handle data (message based) and
terminate after processing
I'm wondering what exactly happens when I stop the service. I don't see an
ThreadAbortedException, but I'm worried my worker threads might be
terminated in the middle of processing. My Server.OnStop is empty.
Does Windows wait for all threads to terminate in a given timespan, then
send an Abort to all running threads? Or does it send Abort directly?
Any help, including pointing to good URL (haven't found any so far) or
better newsgroup is very much appreciated.
Simon