Java并发基础(六) - 线程池 1. 概述 这里讲一下Java并发编程的线程池的原理及其实现 2. 线程池的基本用法 2.1 线程池的处理流程图 该图来自《Java并发编程的艺术》: 从图中我们可以看出当一个新任务到线程池时,线程池的处理流程如下: 线程池首先判断线程池里面线程数是否达到核心线程 ...
分类:
编程语言 时间:
2017-06-06 22:05:29
阅读次数:
266
output standard output output standard output output Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Eac ...
分类:
其他好文 时间:
2017-06-05 21:05:35
阅读次数:
232
In previous posts on vm.swappiness and using RAM disks we talked about how the memory on a Linux guest is used for the OS itself (the kernel, buffers, ...
分类:
系统相关 时间:
2017-05-31 18:52:23
阅读次数:
203
曾经用MySQL数据库,整天都是写大堆大堆的SQL语句。要记住这些SQLkeyword都要花好几天时间,写的蛋都爆了,当接触到MongoDB的时候,发现不用写SQL,瞬间认为高大上,瞬间产生了学习使用它的冲动。 1.MongoDB简单介绍 MongoDB是一种强大,灵活。可扩展的数据存储方式。它扩展 ...
分类:
数据库 时间:
2017-05-29 20:29:34
阅读次数:
349
http://www.cnblogs.com/coderhuang/p/5180259.html http://blog.csdn.net/norsd/article/details/50387930 https://stackoverflow.com/questions/26723693/gett ...
分类:
其他好文 时间:
2017-05-28 16:48:37
阅读次数:
180
System.InvalidOperationException:“Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances th ...
分类:
移动开发 时间:
2017-05-23 23:44:47
阅读次数:
2522
拼接sql命令查询数据 注释 常用于sql注入 # 井号 单行注释 注意:URL编码 %23 -- 两个减号加空格 单行注释 /* */ 注释一个区域 注意!在sql注入遇到单引号被转译的情况可以使用 HEX编码 绕过单引号的使用 注入测试poc 1 or 1=1 1' or '1=1 1" or ...
分类:
数据库 时间:
2017-05-21 13:46:31
阅读次数:
1456
题目描述 The cows are trying to become better athletes, so Bessie is running on a track for exactly N (1 ≤ N ≤ 10,000) minutes. During each minute, she ca ...
分类:
其他好文 时间:
2017-05-19 22:23:04
阅读次数:
268
P1353 [USACO08JAN]跑步Running P1353 [USACO08JAN]跑步Running P1353 [USACO08JAN]跑步Running 题目描述 The cows are trying to become better athletes, so Bessie is r ...
分类:
其他好文 时间:
2017-05-19 19:26:52
阅读次数:
256
A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has ...
分类:
其他好文 时间:
2017-05-15 15:10:34
阅读次数:
152