e1d45855ed9a9fd67f47fdcd6ce27f4cfb883b87.svn-base
598 Bytes
package com.thinkgem.jeesite.test;
import com.thinkgem.jeesite.modules.reg.utils.Singleton;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int i = 0;i<100000;i++) {
new Thread(()->{
Singleton instance = Singleton.getInstance();
if(!instance.useRr()) {
return;
}
String name = Thread.currentThread().getName();
System.out.println(name + ": 执行" );
instance.closeRr();
}).start();
}
}
}