public void start(){
synchronized (myQueue) {
    if (myStarted)     return;
    myStarted=true;
    if (!myQueue.isEmpty()) {
      startProcessing();
    }
  }
}

public void start ( ) { synchronized ( myQueue ) { if ( myStarted ) return ; myStarted = true ; if ( ! myQueue . isEmpty ( ) ) { startProcessing ( ) ; } } }
starts queue processing if it hasn ' t started yet . effective only if the queueprocessor was created with no - autostart option : otherwise processing will start as soon as the first element is added to the queue . if there are several elements in the queue , processing starts from the first one .
