title: How to programmatically check if an application has hang in VB.NET
body: <p>I need to write a monitoring/watchdog program to check a series of application</p>
  
  <p>The monitoring program should be able to</p>
  
  <ol>
  <li>Determine whether the applications it is monitoring has hang or no response</li>
  <li>If it hangs, restart the specific application</li>
  </ol>
  
  <p>What sort of API in VB.NET can help me achieve this?</p>
  
  <p>any code sample would be very helpful</p>