public Thread newThread()

in nailgun-server/src/main/java/com/facebook/nailgun/NGCommunicator.java [102:116]


      public Thread newThread(Runnable r) {
        SecurityManager s = System.getSecurityManager();
        ThreadGroup group =
            (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
        Thread t = new Thread(group, r, this.threadName, 0);
        if (t.isDaemon()) {
          t.setDaemon(false);
        }
        if (t.getPriority() != Thread.MAX_PRIORITY) {
          // warning - it may actually set lower priority if current thread group does not allow
          // higher priorities
          t.setPriority(Thread.MAX_PRIORITY);
        }
        return t;
      }