Observation 1:
In case any exception occurs, an exception should be logged properly and ptop should be killed properly will all of the threads ( gui and sensor threads ) killed properly. For eg. in case, the GUI cannot be drawn properly exception occurs and ptop hangs.
Observation 2:
While killing ptop, catch the kill signals properly and kill all the threads.
Observation 1:
In case any exception occurs, an exception should be logged properly and ptop should be killed properly will all of the threads ( gui and sensor threads ) killed properly. For eg. in case, the GUI cannot be drawn properly exception occurs and ptop hangs.
Observation 2:
While killing ptop, catch the kill signals properly and kill all the threads.