if(type==TYPE_DEAMON){
if(ts!=null)
throw new ApplicationException("could not create a thread with the name ["+name+"]. name must be unique within a request");
ChildThreadImpl ct = new ChildThreadImpl((PageContextImpl) pc,currentPage,name,threadIndex,attrs,false);
pc.setThreadScope(name,new ThreadsImpl(ct));
ct.setPriority(priority);
ct.setDaemon(false);
ct.start();
}
else {