一、守护进程的基本编码规范 详细参见:《AdvancedProgrammingin The Unix Environment》Section 13.3 Page 583 本小节将介绍一些守护进程的基本编码规范,这些规范将阻止守护进程与当前环境产生一些不必要的交互。本节将通过一个函数daemonize ...
分类:
编程语言 时间:
2020-08-08 23:43:37
阅读次数:
95
2020 Multi-University Training Contest 2 Count on a Tree II Striking Back 题意: 一棵含 \(n\) 个点的树,树上每个点都有颜色,m个操作,有两种: $1,x,y$ :将节点x的颜色设置为 \(y\) $2,a,b,c,d$ ...
分类:
其他好文 时间:
2020-08-07 22:58:41
阅读次数:
77
list arrayList 多线程不安全 //java.util.ConcurrentModificationException 解决办法 * 1,new Vector<>();并发性能下降很大(所有操作都加锁) * 2,Collections.synchronizedList(arrayList ...
分类:
其他好文 时间:
2020-08-07 12:36:37
阅读次数:
77
点击查看代码块 /* 找字典序最小的欧拉路,也可以做欧拉回路 */ #include <bits/stdc++.h> #define ed end() #define bg begin() #define mp make_pair #define pb push_back #define v(T) ...
分类:
其他好文 时间:
2020-08-07 12:35:13
阅读次数:
76
Leetcode.345 Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hell ...
分类:
其他好文 时间:
2020-08-06 09:30:08
阅读次数:
64
https://blog.csdn.net/bernkafly/article/details/89553711 redis概述 传统的数据访问: 缓存 + MySql 垂直拆分: 主从复制,读写分离: 分表分库+水平拆分+MySql 集群: 到了现在的数据访问流程: 3V + 3高: UDSL 这 ...
功能一: 页面返回键 原始: <button type="primary" @click="back">返回</button> back() { this.$router.back(-1); }, uniapp: <button type="primary" @tap="back">返回</butt ...
分类:
移动开发 时间:
2020-08-05 14:29:33
阅读次数:
156
1、简介 MBG:Mybatis Generator(代码生成器) 文档http://mybatis.org/generator/configreference/xmlconfig.html 逆向工程: 根据table,逆向分析数据表,自动生成javaBean -- dao -- dao.xml - ...
分类:
其他好文 时间:
2020-08-04 11:26:36
阅读次数:
76