code: public static Thread newThread(String name, Runnable runnable, boolean daemon) {
          Thread thread = new Thread(runnable, name);
          thread.setDaemon(daemon);
          return thread;
      }
docs: Create a new thread
  
  @param name     The name of the thread
  @param runnable The work for the thread to do
  @param daemon   Should the thread block JVM shutdown?
  @return The unstarted thread