A thread-monitor, often also referred to as a watchdog, is extremely helpful when building multi-threaded and reliable applications. In its simplest form, a watchdog should detect when one or more threads hang or crash, and it should restart the problematic threads if necessary. Depending on your use-case, you could implement this helper in a variety of ways, and you could add many more features such as a heartbeat function that allows each thread to report its progress to the monitor.
Continue reading Writing a Quick and Easy Thread-Monitor (Watchdog) in Python [shorts #1]Writing a Quick and Easy Thread-Monitor (Watchdog) in Python [shorts #1]
