Problem: In real time systems, normally application will be running for all the time, 365 days and 24/7. Some dashboards will be displaying the mission critical parameters like trends, alarms events etc. How do we make sure that the dashboard windows of the application are showing correct real time data and it is not hung?
Analysis: The application or the window may hang due to various reasons like OS going to hibernate mode or due to some exception the window thread may not be showing the live real time data. To make sure that the windows are not freeze, we need some mechanism for alerting the user in such cases.
Solution: The solution is to have a watchdog process, that keeps on monitoring all the threads of the running application. A mechanism to send alive time out message and receive the acknowledgement from the threads of the main application. In case the application hangs there should be a way to let the user know that the main application has hang and needs to be restarted. It can be further expanded to collect dumps (for example in case of any application hang or crash Windows operating system asks for sending the dumps to Microsoft) for analyzing the hang or crash issue. Watchdog process can also be utilized for collecting and sending dumps of the main application in case of hang or crash.
Analysis: The application or the window may hang due to various reasons like OS going to hibernate mode or due to some exception the window thread may not be showing the live real time data. To make sure that the windows are not freeze, we need some mechanism for alerting the user in such cases.
Solution: The solution is to have a watchdog process, that keeps on monitoring all the threads of the running application. A mechanism to send alive time out message and receive the acknowledgement from the threads of the main application. In case the application hangs there should be a way to let the user know that the main application has hang and needs to be restarted. It can be further expanded to collect dumps (for example in case of any application hang or crash Windows operating system asks for sending the dumps to Microsoft) for analyzing the hang or crash issue. Watchdog process can also be utilized for collecting and sending dumps of the main application in case of hang or crash.
Comments
Post a Comment