Message-ID: <3DF8FD8A.7080804@umkc.edu> Date: Thu, 12 Dec 2002 15:20:14 -0600 From: Jason Clinton <clintonj@umkc.edu> Subject: Re: Watchdog thread
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
jim wrote:
| Hi,
|
| I've got a multi-threaded app and I want to have one thread monitor another
| thread. If the watched thread locks up for some reason, I want the watchdog
| thread to kill it and restart it. Can someone point me to some information
| on how to that?
BSOD:
Warning! Application XXX has caused an invalid page fault in module EMM386.
Press any key to terminate this program.
Isn't general programming practice to not write such a 'watchdog' thread? If the
code to said 'watched' thread is out of your control, you could just write a
Perl script to monitor it. If it's under your control, wouldn't you want to just
resolve the freezing/locking?
Just an honest question.
- --
I don't believe in witty sigs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9+P2KtSqjk42zvwkRAqD7AKC+N8V9b4gjiunKHgSCYoZDF5l4CwCggC39
NabpiDAvOIBT8LQF29iifQY=
=cLZt
-----END PGP SIGNATURE-----