4.3.4 方法isTerminating ()和isTerminated ()