说一下 atomic 的原理? 答: JDK Atomic开头的类,是通过 CAS 原理解决并发情况下原子性问题。 CAS 包含 3 个参数,CAS(V, E, N)。V 表示需要更新的变量,E 表示变量当前期望值,N 表示更新为的值。只有当变量 V 的值等于 E 时,变量 V 的值才会被更新为 N ...
分类:
其他好文 时间:
2020-05-16 22:21:30
阅读次数:
143
HttpRunner 在命令行中启动测试时,通过指定参数,可实现丰富的测试特性控制。 使用命令是:hrun hrun h 可以列出所有支持的参数; 运行测试用例: 1、运行单个或者多个指定的测试用例; $ hrun filepath/testcase1.yml [filepath/testcase2 ...
分类:
Web程序 时间:
2020-05-16 18:56:03
阅读次数:
73
C语言程序流程结构 C语言支持最基本的三种程序运行结构:顺序结构、选择结构、循环结构 一、顺序结构 程序按顺序执行,不发生跳转。 二、选择结构 依据是否满足条件,有选择的执行相应功能。 1.if语句 1 #include<stdio.h> 2 3 int main() 4 { 5 int a=1; ...
分类:
编程语言 时间:
2020-05-15 22:59:41
阅读次数:
139
可以用 update-index-settings API 动态修改副本数: PUT /my_temp_index/_settings { "number_of_replicas": 1 } curl -XPUT http://192.168.0.200:9200/index_execution_2 ...
分类:
其他好文 时间:
2020-05-15 20:15:33
阅读次数:
128
``` PUT _template/log-template { "template": "log.*", "settings": { "number_of_shards": "3", "number_of_replicas": "1" } } ``` ...
分类:
其他好文 时间:
2020-05-15 15:24:42
阅读次数:
61
购买过阿里云服务器的用户都会发现,当我们需要再次购买阿里云服务器产品的时候,会发现,阿里云优惠活动只针对新用户有效,老用户无法获得优惠,被很多老用户们吐槽,那么老用户怎么购买特惠活动中的优惠服务器? 方法/步骤 第一步:进入阿里云官网,并登录我们的阿里云账号。 ? 第二步:进入阿里云-云小站,云小站 ...
分类:
其他好文 时间:
2020-05-15 13:28:06
阅读次数:
77
#include<reg52.h> #include<stdio.h> #define uchar unsigned char #define uint unsigned int uchar code Duan[]={0x3F, 0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07, ...
分类:
其他好文 时间:
2020-05-14 22:18:08
阅读次数:
88
switch 语句 switch 语句判断一个变量与一系列值中某个值是否相等,每个值称为一个分支。语法switch 语法格式如下: switch 语句有如下规则: switch 语句中的变量类型可以是:byte、short、int 或者 char。从 Java SE 7 开始,switch 支持字符 ...
分类:
编程语言 时间:
2020-05-14 20:58:59
阅读次数:
67
原来: # See smb.conf.example for a more detailed config file or # read the smb.conf manpage. # Run 'testparm' to verify the config is correct after # yo ...
分类:
系统相关 时间:
2020-05-14 01:54:38
阅读次数:
86
yum-yinstalljq[sqoop@uhadoop-mzwc2w-task3weather]$pwd/home/sqoop/scripts/weatherYouhavenewmailin/var/spool/mail/sqoop[sqoop@uhadoop-mzwc2w-task3weather]$catweather.sh#!/bin/bashecho‘------------------
分类:
系统相关 时间:
2020-05-14 01:23:05
阅读次数:
133