2022年1月19日

简单介绍 java设计模式---策略模式

摘要: 策略模式(Strategy Pattern) 现在来地说说如何来实现策略模式(锦囊妙计): 1、策略[妙计]实现接口(IStrategy); 2、对应的策略实现类(*Strategy); 3、封装策略的锦囊(StrategyContext); 4、策略执行者(StrategyExecute)。 IS 阅读全文

posted @ 2022-01-19 16:56 张金蛋 阅读(36) 评论(0) 推荐(0)

讲一下 MySQL虚拟列在电商场景下的应用

摘要: JDK1.8线程池剖析 那么缓存队列多大?工作线程多少?不够该怎么办?这个是非常值得研究,下面我们来看看java内置的集中线程池是怎么样对这几个参数进行配置的。 1、ThreadPoolExecutor newFixedThreadPool(int nThreads):工作线程数和最大线程数相同,也 阅读全文

posted @ 2022-01-19 16:54 张金蛋 阅读(52) 评论(0) 推荐(0)

从C到C++ 有什么样的过程

摘要: 头文件 C风格 #include<stdio.h> #include<math.h> C++风格 #include<iostream> #include<cstdio> //C++风格 #include<cmath> //math.h cmath 02 输入输出 #include<stdio.h> 阅读全文

posted @ 2022-01-19 16:51 张金蛋 阅读(49) 评论(0) 推荐(0)

导航