题目:
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),...
分类:
其他好文 时间:
2015-04-05 23:37:03
阅读次数:
153
Aircrack-ng官方文档翻译---Airmon-ngDescription【简介】 This script can be used to enable monitor mode on wireless interfaces. It may also be used to go back fro...
分类:
其他好文 时间:
2015-04-05 21:48:10
阅读次数:
261
阻塞总数Blocked count is the total number of times that the thread blocked to enter or reenter a monitor. I.e. the number of times a thread has been in th...
分类:
编程语言 时间:
2015-04-05 18:41:26
阅读次数:
2747
OLTP,也叫联机事务处理(Online Transaction Processing),表示事务性非常高的系统,一般都是高可用的在线系统,以小的事务以及小的查询为主,评估其系统的时候,一般看其每秒执行的Transaction以及Execute SQL的数量。在这样的系统中,单个数据库每秒处理的Transaction往往超过几百个,或者是几千个,Select 语句的执行量每秒几千甚至几万个。典型的O...
分类:
其他好文 时间:
2015-04-05 16:06:14
阅读次数:
137
演示不同隔离级别下的并发问题1.当把事务的隔离级别设置为read uncommitted时,会引发脏读、不可重复读和虚读A窗口set transaction isolation level read uncommitted;start transaction;select * from accou....
分类:
其他好文 时间:
2015-04-05 11:52:51
阅读次数:
128
事务Transaction
/*
* 事务Transaction
* JDBC默认开启自动提交事务,需要关闭,才能手动控制事务
*
* 默认MySQL存储引擎为My...,其不支持事务处理,修改为InnoDB引擎
* create table 表名( ) engine=InnoDB default charset=utf8;
*
* InnoDB引擎默认关闭自动事务提交,修改My...
分类:
编程语言 时间:
2015-04-05 10:38:19
阅读次数:
168
最近整合springmvc 发现一个离奇的报错,No Hibernate Session bound to thread,
and configuration does not allow creation,就是这丫,之前在单元测试的时候测试sessionFactory,测试transaction都通过,正当我happy 的跑去做action的时候,这丫来个晴天霹雳啊.......没有一点点防...
分类:
编程语言 时间:
2015-04-05 09:12:37
阅读次数:
177
线程同步
Java语言的优点之一就是他在语言级别上对多线程的支持。这些支持多集中在于同步(synchronization):多线程之间的协作活动和数据访问。Java所使用的支持同步的机制是监控器(monitor)。本章描述这些监控器以及他们如何被JVM使用。并且从JVM指令集描述监控器的加锁和解锁。
监控器(Monitors)
Java监控器支持两种类型的线程同步:互...
分类:
其他好文 时间:
2015-04-04 09:17:33
阅读次数:
197
题目Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (...
分类:
其他好文 时间:
2015-04-03 20:52:55
阅读次数:
135
1. 找到文件并作如下修改: vim?/etc/network/interfaces 修改如下部分: #?This?file?describes?the?network?interfaces?available?on?your?system
#?and?how?to?activate?them.?For?more?i...
分类:
其他好文 时间:
2015-04-03 11:43:13
阅读次数:
118