Running Executables with threading