public static synchronized ThreadPool initialize(Configuration conf) {
    if (self == null) {
      self = new ThreadPool(conf);
      LOG.debug("ThreadPool initialized");
    }
    return self;
  }
Utility singleton class to manage all the threads.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ThreadPool.java