摘要 |
Methods and systems to provide monitoring of operation of threads of a multi-threaded process. In one aspect a reusable thread monitor class is provided that permits each thread desiring monitoring to register with a monitor supervisor. The monitor supervisor may be instantiated in a thread of the process and monitors the operable/inoperable status of the registered threads. The monitor supervisor may be instantiate in any thread of the multi-threaded process or in a specific thread spawned specifically for the monitor supervisor. In a preferred, best presently know mode of practicing the invention, the monitor supervisor is instantiated in the main thread of the process. Monitoring may include "IsAlive" thread status checks, HeartBeat signaling status checks, and/or Polling status check capabilities.
|