Hello all,
I have written a series of communication classes that provide
“communications” to our higher level developers. The issue I have is during
shutdown…
I have 4 worker threads. Each worker thread has several events that they
monitor using WaitForMultipleObjects() -
When the Application/Service starts it’s cleanup to terminate I set an event
“Die” (each thread has it’s own ‘DIE’ and ‘ThreadIsDead’ event objects) and
the worker thread starts it’s shutdown… I then
WaitForSingleObject(ThreadIsDead) for the thread to single that it has
completed it’s shutdown… I have a timeout of 5 seconds, occasionally I
don’t get signaled from the worker thread that it has died and I let the
service/application terminate.
Is there any side effects of letting the application terminate before the
threads are completed stoped? All other resources (Memory, Sockets, Files,
etc) are closed and free, it is only the worker thread…
Thanks in advance for your reply…
Jim Row
Senior Software Engineer
Extended Technologies Corporation
9708 Skillman Road
Dallas, TX 75243
EMAIL: xxxxx@xtekcorp.com
PHONE: 214-540-4117
FAX: 214-540-40
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com