question: public static void waitForOrKill ( Process self , long numberOfMillis ) { ProcessRunner runnable = new ProcessRunner ( self ) ; Thread thread = new Thread ( runnable ) ; thread . start ( ) ; runnable . waitForOrKill ( numberOfMillis ) ; }
target:  Wait for the process to finish during a certain amount of time, otherwise stops the process.