随笔分类 -  多线程

摘要:转载自 https://www.cnblogs.com/atomicbomb/p/7692770.html # 答案:N核服务器,通过日志分析出任务执行过程中,本地计算时间为x,等待时间(网络传输,rpc等待等)为y,则工作线程数(线程池线程数)设置为 N*(x+y)/x Web-Server通常有 阅读全文
posted @ 2017-11-15 00:14 icebearrr 阅读(701) 评论(0) 推荐(0)
摘要:当一个方法后面声明可能会抛出InterruptedException 异常时,说明该方法是可能会花一点时间,但是可以取消的方法。 抛InterruptedException的代表方法有: 1. java.lang.Object 类的 wait 方法 2. java.lang.Thread 类的 sl 阅读全文
posted @ 2017-11-15 00:13 icebearrr 阅读(4515) 评论(0) 推荐(0)