核心类:ZorkaAsyncThread.javaprotected BlockingQueue submitQueue; /*** Processes single item from submit queue (if any).*/public void runCycle() {try {T o...
分类:
其他好文 时间:
2015-06-23 11:50:03
阅读次数:
184
1、Single Threaded Execution Pattern(单线程运行模式)2、Immutable Pattern(一成不变的模式)3、Guarded Suspension Pattern(国防暂停模式)4、Balking Pattern(止步模式,阻行模式)5、Producer-Con...
分类:
编程语言 时间:
2015-06-22 19:17:58
阅读次数:
148
设计模式:解决某一类问题最行之有效的方法。Java中有23种设计模式。单例模式:解决一个类在内存中只存在一个对象。如何用代码实现?1.将构造函数私有化;2.在类中创建一个本类对象;3.提供一个方法可以获取到该对象。单例模式有两种方法实现:一、懒汉式对象是方法被调用时才初始化。Single类进内存,对...
分类:
其他好文 时间:
2015-06-22 14:48:58
阅读次数:
106
3.1.2.字符串python可以操作字符串,字符串包含在单引号或者双引号的内部,\可以用来转义引号escape quotes。 1 >>> 'spam eggs' # single quotes 2 'spam eggs' 3 >>> 'doesn\'t' # use \' to escape t...
分类:
其他好文 时间:
2015-06-21 22:17:07
阅读次数:
128
题目链接:https://leetcode.com/problems/regular-expression-matching/
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more...
分类:
其他好文 时间:
2015-06-21 18:38:10
阅读次数:
215
Dscription:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear r...
分类:
其他好文 时间:
2015-06-21 18:21:49
阅读次数:
83
Description:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtim...
分类:
其他好文 时间:
2015-06-21 18:18:02
阅读次数:
110
1:BIOS:开机会自动对BIOS(嵌于硬件中的软件)进行检测,根据用户的设置,识别第一个可开机的设备2:MBR:读取第一个可开机设备的第一个扇区内的MBR(主引导程序分区块),MBR中有bootloader(引导加载程序)3:bootloader:载入内核文件,开始操作系统额外功能:1:提供菜单..
分类:
其他好文 时间:
2015-06-21 15:59:42
阅读次数:
114
题目链接 题目要求: Given an array of integers, every element appearstwiceexcept for one. Find that single one. Note: Your algorithm should have a linear...
分类:
其他好文 时间:
2015-06-20 17:02:27
阅读次数:
102
Speed of INSERT StatementsTo optimize insert speed, combine many small operations into a single large operation. Ideally, you make a single connection...
分类:
数据库 时间:
2015-06-20 17:01:20
阅读次数:
152