Check if another Application is alive

1

I have an application running 24h a day generating some data, and it used to crash from time to time when I needed to send the data to a web server. Then came the idea of breaking up into two apps, one generates the data and another transmits.

The question is, at each cycle of the "main" app, after generating the data, it initializes the secondary app to transmit the data, how can I check if this second application is alive from the last cycle and how to kill it? is the case before you call it again?

    
asked by anonymous 25.02.2016 / 18:53

0 answers