338339340341342343344345346347348
if(ts==null) throw new ApplicationException("there is no thread running with the name ["+name+"]"); ChildThread ct = ts.getChildThread(); if(ct.isAlive()){ ct.terminated(); ct.stop(); } }