final boolean isRunningOrShutdown2(boolean shutdownOK){
  int rs=runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

final boolean isRunningOrShutdown2 ( boolean shutdownOK ) { int rs = runStateOf ( ctl . get ( ) ) ; return rs == RUNNING || ( rs == SHUTDOWN && shutdownOK ) ; }
state check needed by scheduledthreadpoolexecutor to enable running tasks during shutdown ;
