摘要: # update select 语句(注意:必须使用inner join) # 语法 update a inner join (select yy from b) c on a.id =c.id set a.xx = c.yy #SELECT knowledge_id,COUNT(0) nums F 阅读全文
posted @ 2022-04-08 15:46 你我一路随行 阅读(1821) 评论(0) 推荐(1) 编辑
摘要: #1 cpu密集型: cpu使用率较高(也就是一些复杂运算,逻辑处理),所以线程数一般只需要cpu核数的线程就可以了。 这一类型的在开发中多出现的一些业务复杂计算和逻辑处理过程中。 #1 I/O密集型: cpu使用率较低,程序中会存在大量I/O操作占据时间,导致线程空余时间出来,所以通常就需要开cp 阅读全文
posted @ 2022-04-08 15:17 你我一路随行 阅读(3474) 评论(0) 推荐(0) 编辑
摘要: Java 线程池会自动关闭吗|转 首先我们需要了解线程池在什么情况下会自动关闭。ThreadPoolExecutor 类(这是我们最常用的线程池实现类)的源码注释中有这么一句话: A pool that is no longer referenced in a program and has no 阅读全文
posted @ 2022-04-08 14:54 你我一路随行 阅读(1631) 评论(0) 推荐(0) 编辑