code: private static Thread doThread(Runnable runnable, String name, boolean deamon){
          String realname = getThreadName(name);
          Thread t = new Thread(runnable);
          t.setName(realname);
          t.setDaemon(deamon);
          return t;
      }
docs: Generate the Thread.
  
  @param runnable
  the runnable task.
  @param name
  the thread name.
  @param deamon
  the deamon flag.
  @return
  the Thread.