@Override public void execute(Runnable command){
  tasks.add(command);
  if (selecting && signal.compareAndSet(false,true)) {
    selector.wakeup();
  }
}

@ Override public void execute ( Runnable command ) { tasks . add ( command ) ; if ( selecting && signal . compareAndSet ( false , true ) ) { selector . wakeup ( ) ; } }
executes the runnable on the internal runloopthread , waking the selector if necessary .
