Watchdog thread
Jason Clinton
clintonj at umkc.edu
Thu Dec 12 21:20:14 CST 2002
-----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-----
More information about the Kclug
mailing list