static Thread createThread(final Runnable runnable,final String threadName,final boolean isDaemon,final int priority,final boolean doStart){
  Thread thread=new Thread(runnable);
  if (threadName != null) {
    thread.setName(threadName);
  }
  thread.setDaemon(isDaemon);
  if (priority >= 0) {
    thread.setPriority(priority);
  }
  if (doStart) {
    thread.start();
  }
  return thread;
}

static Thread createThread ( final Runnable runnable , final String threadName , final boolean isDaemon , final int priority , final boolean doStart ) { Thread thread = new Thread ( runnable ) ; if ( threadName != null ) { thread . setName ( threadName ) ; } thread . setDaemon ( isDaemon ) ; if ( priority >= 0 ) { thread . setPriority ( priority ) ; } if ( doStart ) { thread . start ( ) ; } return thread ; }
create a thread in the current threadgroup .
