一、守护进程的基本编码规范 详细参见:《AdvancedProgrammingin The Unix Environment》Section 13.3 Page 583 本小节将介绍一些守护进程的基本编码规范,这些规范将阻止守护进程与当前环境产生一些不必要的交互。本节将通过一个函数daemonize ...
分类:
编程语言 时间:
2020-08-08 23:43:37
阅读次数:
95
list arrayList 多线程不安全 //java.util.ConcurrentModificationException 解决办法 * 1,new Vector<>();并发性能下降很大(所有操作都加锁) * 2,Collections.synchronizedList(arrayList ...
分类:
其他好文 时间:
2020-08-07 12:36:37
阅读次数:
77
C 类型限定符 1. Introduction C 语言中的大部分类型都可以用称为限定符(qualifier)的关键字 const、 volatile、 restrict、 _Atomic 加以限定。这些限定符可以单独使用,也可以组合使用。 const 和 volatile 在 C89/C90 版本 ...
分类:
其他好文 时间:
2020-08-07 12:29:39
阅读次数:
58
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
1、简介 MBG:Mybatis Generator(代码生成器) 文档http://mybatis.org/generator/configreference/xmlconfig.html 逆向工程: 根据table,逆向分析数据表,自动生成javaBean -- dao -- dao.xml - ...
分类:
其他好文 时间:
2020-08-04 11:26:36
阅读次数:
76
前言 前面我们为了解决go程同步的问题我们使用了channel, 但是go也提供了传统的同步工具. 它们都在go的标准库代码包 sync 和 sync/atomic 中. 下面我们来看一下锁的应用. 什么是锁呢? 就是某个协程(线程)在访问某个资源时先锁住, 防止其他协程的访问, 等访问完毕解锁后其 ...
分类:
其他好文 时间:
2020-08-04 09:46:17
阅读次数:
59
#在EXO中有Get-MailTrafficTopReport,官网:https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailtraffictopreport?view=exchange-ps这个report可以很直观的查处一定时间内每个邮箱的发送量,但是在本地Exchange服务器中却没有。#以下脚本调用了Excha
分类:
其他好文 时间:
2020-08-03 18:42:13
阅读次数:
97
话不多讲,也不知道咋讲!直接上代码 认证信息承载对象【user】 /// <summary> /// 认证用户信息 /// </summary> public class DyUser { /// <summary> /// 用户ID /// </summary> public int UserId ...
分类:
Web程序 时间:
2020-08-01 21:32:30
阅读次数:
138