public void runProgram(){
  if ((runningThread == null) && !running) {
    running=true;
    runningThread=new Thread(this);
    runningThread.start();
  }
}

public void runProgram ( ) { if ( ( runningThread == null ) && ! running ) { running = true ; runningThread = new Thread ( this ) ; runningThread . start ( ) ; } }
creates a new thread to run the assembler program in it .
