主从参数: 修改date:ntpdate asia.pool.ntp.org 主从配置通讯端口: db2h_erpinst1 70000/tcp 主库配置: db2 update db cfg for erpdb using hadr_local_host PrimaryNode-1 #本地服务器主 ...
分类:
数据库 时间:
2020-04-22 19:37:17
阅读次数:
252
"A. Candies and Two Sisters" + 将糖果分为a,b两份,且a t; while(t ){ cin n; cout t; while(t ){ cin n a b; for(int i = 0; i book; int main(void){ ios::sync_with_ ...
分类:
其他好文 时间:
2020-04-22 13:42:51
阅读次数:
85
A - Candies 题目大意:找到一个x ,存在k>1,使x + 2x + 4x + ? + 2^(k?1)x = n。 即找到x,k满足这个式子:(2^k-1)*x = n,可以枚举k 判断(2^k-1)|n #include <bits/stdc++.h> using namespace s ...
分类:
其他好文 时间:
2020-04-22 13:30:08
阅读次数:
66
1.1 HashMap与Hashtable的相同点(重要) HashMap 和 Hashtable 都是存储“键值对(key value)”的散列表,都采用拉链法实现 存储的思想都是: 通过table数组存储,数组的每一个元素都是一个Entry ;而 一个Entry就是一个单向链表 , Entry链 ...
分类:
编程语言 时间:
2020-04-21 18:11:23
阅读次数:
77
ReentrantLock 1 数据结构 从上图可以看出,ReentrantLock的功能都是通过sync这个对象提供的。 2 获取锁是否要走公平非公平逻辑 区分公平非公平锁,公平锁老实排队 lock lockInterruptibly tryLock(long timeout, TimeUnit ...
分类:
其他好文 时间:
2020-04-21 15:19:37
阅读次数:
56
WAL——Write-AHead Logging,预写式日志 ...
分类:
数据库 时间:
2020-04-21 13:00:17
阅读次数:
90
So this is what I need to do before my traineeship ends. connect android app with the database from a website store some information into the database ...
分类:
移动开发 时间:
2020-04-21 12:44:23
阅读次数:
105
A. 组队比赛 签到。 Code cpp / Author: heyuhhh Created Time: 2020/4/18 12:10:50 / include include include include include include include include include incl ...
分类:
其他好文 时间:
2020-04-21 09:56:24
阅读次数:
96
synchronized synchronized关键字锁定的是对象不是代码块,demo中锁的是object对象的实例 锁定的对象有两种:1.类的实例 2.类对象 加synchronized关键字之后不一定能实现线程安全,具体还要看锁定的对象是否唯一。 看个demo: private int cou ...
分类:
其他好文 时间:
2020-04-20 23:38:27
阅读次数:
64
Redis配置文件 Redis.conf详解 一:单位 1.对大小写不敏感 二:包含____INCLUDES 1.类似于spring配置的import,include 三:网络____NETWORK bind 127.0.0.1 # 绑定的ip protected-mode yes # 保护模式 p ...
分类:
其他好文 时间:
2020-04-20 16:26:31
阅读次数:
85