摘要:
package threadT; public class ThreadMain { public static void main(String args[]) { final Object obj = new Object();// 以该对象为共享资源 new Thread(new Thread1to2(1, obj), "小明").start();... 阅读全文
摘要:
package threadT; public class ThreadMain { public static void main(String args[]) { SellTicket str = new SellTicket(10); Thread tr1 = new Thread(str, "窗口1"); Thread tr2 =... 阅读全文
摘要:
此代码为诗词荣耀websocket的实现,解决了tomcat实现的websocket连接不稳定的问题 阅读全文