Executors.newFixedThreadPool(NO_OF_THREADS, new ThreadFactory() {
 @Override
  public Thread newThread(Runnable r) {
   return new Thread(() -> {
   });
  }
}).execute(//returned thread here);
How to pass the anonymous thread as an argument to the execute function? Creating a new instance of the returned thread object to each thread.
