public String toString(){
  long qt=0L, qs=0L;
  int rc=0;
  AtomicLong sc=stealCounter;
  long st=(sc == null) ? 0L : sc.get();
  long c=ctl;
  WorkQueue[] ws;
  WorkQueue w;
  if ((ws=workQueues) != null) {
    for (int i=0; i < ws.length; ++i) {
      if ((w=ws[i]) != null) {
        int size=w.queueSize();
        if ((i & 1) == 0)         qs+=size;
 else {
          qt+=size;
          st+=w.nsteals;
          if (w.isApparentlyUnblocked())           ++rc;
        }
      }
    }
  }
  int pc=(config & SMASK);
  int tc=pc + (short)(c >>> TC_SHIFT);
  int ac=pc + (int)(c >> AC_SHIFT);
  if (ac < 0)   ac=0;
  int rs=runState;
  String level=((rs & TERMINATED) != 0 ? "Terminated" : (rs & STOP) != 0 ? "Terminating" : (rs & SHUTDOWN) != 0 ? "Shutting down" : "Running");
  return super.toString() + "[" + level+ ", parallelism = "+ pc+ ", size = "+ tc+ ", active = "+ ac+ ", running = "+ rc+ ", steals = "+ st+ ", tasks = "+ qt+ ", submissions = "+ qs+ "]";
}

public String toString ( ) { long qt = 0L , qs = 0L ; int rc = 0 ; AtomicLong sc = stealCounter ; long st = ( sc == null ) ? 0L : sc . get ( ) ; long c = ctl ; WorkQueue [ ] ws ; WorkQueue w ; if ( ( ws = workQueues ) != null ) { for ( int i = 0 ; i < ws . length ; ++ i ) { if ( ( w = ws [ i ] ) != null ) { int size = w . queueSize ( ) ; if ( ( i & 1 ) == 0 ) qs += size ; else { qt += size ; st += w . nsteals ; if ( w . isApparentlyUnblocked ( ) ) ++ rc ; } } } } int pc = ( config & SMASK ) ; int tc = pc + ( short ) ( c > > > TC_SHIFT ) ; int ac = pc + ( int ) ( c > > AC_SHIFT ) ; if ( ac < 0 ) ac = 0 ; int rs = runState ; String level = ( ( rs & TERMINATED ) != 0 ? "Terminated" : ( rs & STOP ) != 0 ? "Terminating" : ( rs & SHUTDOWN ) != 0 ? "Shutting down" : "Running" ) ; return super . toString ( ) + "[" + level + ", parallelism = " + pc + ", size = " + tc + ", active = " + ac + ", running = " + rc + ", steals = " + st + ", tasks = " + qt + ", submissions = " + qs + "]" ; }
returns a string identifying this pool , as well as its state , including indications of run state , parallelism level , and worker and task counts .
