一、线程组 主要包含三个参数: 线程数、准备时长(Ramp-Up Period(in seconds))、循环次数 线程数:虚拟用户数 准备时长(s):设置的虚拟用户数需要多长的时间全部启动。如 线程数设置20,时长10,则表示10s启动20个线程。 循环次数:每个线程发送请求的次数。若线程数20, ...
分类:
Web程序 时间:
2018-11-20 17:11:51
阅读次数:
265
资源创建详解 [TOC] 一:Pod及常用参数 1.简介 2.模板 3.删除pod 示例流程如下: 1. 用户发送删除pod的命令,默认宽限期是30秒; 2. 在Pod超过该宽限期后API server就会更新Pod的状态为“dead”; 3. 在客户端命令行上显示的Pod状态为“terminati ...
分类:
Web程序 时间:
2018-11-19 17:23:55
阅读次数:
344
typedef struct { uint16_t TIM_OCMode; //PWM模式1或者模式2 uint16_t TIM_OutputState; //输出使能 OR失能 uint16_t TIM_OutputNState; uint16_t TIM_Pulse; //比较值,写CCRx u ...
分类:
其他好文 时间:
2018-11-17 20:41:58
阅读次数:
265
Logback主要标签说明 1. Logger: 日志的记录器,主要用于存放日志对象,也可以用来定义日志的类型和级别等。 2. appender:用于指定日志输出的目的地,也就是输出的媒介。这个媒介可以是控制台,也可以是文件,还可以是远程套接字服务器等。 3. layout:用于格式化日志输出的格式 ...
分类:
其他好文 时间:
2018-11-16 01:13:12
阅读次数:
244
首先我们看看简单定时器实现方法:用ScheduledExecutorService接口 Java代码 public interface ScheduledExecutorService extends ExecutorService { 创建并执行在给定延迟后启用的一次性操作。 ScheduledF ...
分类:
其他好文 时间:
2018-11-14 16:38:43
阅读次数:
124
1.问题还原: The service does not automatically connect, free after a period of time, the first call will appear the following error, next to normal. The p ...
分类:
Web程序 时间:
2018-11-08 18:34:56
阅读次数:
2255
测评传送门 题意: 一个字符串,求所有循环节长度及位置 Sample Input Sample Output 通过样例1再解释下题意: aa可由第1个a循环 2 次得到,输出位置:2,循环长度:2 aaa可由第1个a循环 3 次得到,输出位置:3,长度:3 做法:KMP的 next 预处理 code ...
分类:
其他好文 时间:
2018-11-08 00:23:58
阅读次数:
159
A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, th ...
分类:
其他好文 时间:
2018-10-28 00:47:45
阅读次数:
159
* Timer:任务调度 * schedule(TimerTask task, Date time); * schedule(TimerTask task, Date * firstTime, long period); * TimerTask实现了Runnable接口;也是一个线程 可以了解一下Q ...
分类:
编程语言 时间:
2018-10-25 14:21:38
阅读次数:
145
Period Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 20436 Accepted: 9961 Description For each prefix of a given string S with N characte ...
分类:
其他好文 时间:
2018-10-20 16:17:14
阅读次数:
152