# f 参数是两个,multiprocessing.pool.map框架只能传一个的时候 from multiprocessing import Pool import time # 1 这个方法不行,但是装饰器思路好 # def my_function_helper(func): # def in ...
分类:
其他好文 时间:
2021-01-01 12:42:07
阅读次数:
0
一、数据库状态查询 1.1、查看进程详情 show processlist; show full processlist; 1.2、数据库连接数 当前连接数 show status like '%threads_%'; 最大连接数 show variables like '%max_connecti ...
分类:
数据库 时间:
2021-01-01 12:06:29
阅读次数:
0
1 struct{}类型的chan只能接受struct{}{},其余的都不行, package main import ( "fmt" "time" ) func fun1(m chan int) { time.Sleep(5*time.Second) m <- 4 } func fun2(m ch ...
分类:
其他好文 时间:
2021-01-01 12:06:12
阅读次数:
0
1.把数组里的时间参数转化成值 temp.sorttime = new Date(tempList[i].createTime).getTime(); 2.对数组里的值进行排序 list.sort(this.compare("sorttime")); compare方法 compare(proper ...
分类:
编程语言 时间:
2021-01-01 11:59:12
阅读次数:
0
课程demos DELETE blog # 设置blog的 Mapping PUT /blog { "mappings": { "properties": { "content": { "type": "text" }, "time": { "type": "date" }, "user": { " ...
分类:
其他好文 时间:
2021-01-01 11:51:56
阅读次数:
0
一、RANGE分区 RANGE分区是基于属于一个给定连续区间的列值,把多行分配给分区。这些区间要连续且不能相互重叠,使用values less than操作符来进行定义。 mysql> create table test01 ( id int not null, fname varchar(30), ...
分类:
数据库 时间:
2021-01-01 11:39:22
阅读次数:
0
python: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 #@Time : 2020/5/3 18:44 4 #@Author: hdq 5 #@File : server.py 6 #将接口以服务器的方式暴露以提供给Java调用缩短调用时 ...
分类:
编程语言 时间:
2020-12-31 12:44:23
阅读次数:
0
归并排序 利用递归实现分治。每次排序时间复杂度是O(N),一共需要 LogN 次。 #include <stdlib.h> #include <time.h> #define size 100 static int n[size]; static int t[size]; void msort(in ...
分类:
编程语言 时间:
2020-12-31 12:14:15
阅读次数:
0
1、安装ntpdate,执行以下命令 # 安装utpdate命令 yum install ntpdate -y 2、手工同步网络时间,执行以下命令,将从time.nist.gov同步时间 ntpdate 0.asia.pool.ntp.org 若上面的时间服务器不可用,也可以选择以下服务器同步时间 ...
分类:
系统相关 时间:
2020-12-31 12:13:31
阅读次数:
0
并行:并行是指两者同时执行,比如赛跑,两个人都在不停的往前跑;(资源够用,比如三个线程,四核的CPU) 并发:并发是指资源有限的情况下,两者交替轮流使用资源,比如一段路(单核CPU资源)同时只能过一个人,A走一段后,让给B,B用完继续给A,交替使用,目的是提高效率。 并行:是从微观上,也就是在一个精 ...
分类:
系统相关 时间:
2020-12-31 12:05:42
阅读次数:
0