摘要:
我们先看一个最古老的多线程实现的服务端 public class SocketThread { public static void main(String[] args) throws IOException { ServerSocket serverSocket = new ServerSock 阅读全文
摘要:
话不多少,先看个案例,【模拟100个用户,每个用户访问10次网站】”: public class ThreadDemo1 { //总访问量 private static int count = 0; //模拟访问的方法 public static void request() throws Inte 阅读全文