演示不同隔离级别下的并发问题
1.当把事务的隔离级别设置为read uncommitted ,会引发脏读,不可重复读,虚读
A窗口
start transaction isolation level read uncommitted;
start transaction;
select * from account;
=======这个时候发现aaa的账户是1000元,转到...
分类:
数据库 时间:
2014-07-28 00:08:09
阅读次数:
277
uvm_transaction继承自uvm_object,添加了timing和recording接口,该类是uvm_sequence_item的基类。下边将做剖析1.这个类提供了时间戳属性(timestamp properties),通知事件(notification events),和交易记录(t...
分类:
其他好文 时间:
2014-07-27 23:16:10
阅读次数:
558
## Sphinx configuration file sample## WARNING! While this sample file mentions all available options,# it contains (very) short helper descriptions on...
分类:
其他好文 时间:
2014-07-27 22:46:29
阅读次数:
476
现在很多公司都都过Jenkins来管理apk,代码提交后在jenkins上生成build
我们可以这样来取到jenkins的提交版本号
Jenkins在编译job的时候,有个内置的变量BUILD_NUMBER
groovy有一个非常有用的函数:
/**
* Returns an unmodifiable map of all available environment v...
分类:
其他好文 时间:
2014-07-27 11:52:03
阅读次数:
173
最近发现几个好用的工具,顺便总结下。procps-ng: top, free, ps, pgrep, vmstat ...sysstat: iostat, sar ...lsof,iftop,mtr,htopcv:新发现的监控cp,dd等即时速度的nmon:从AIX鼎鼎大名的topas移植过来的ds...
分类:
系统相关 时间:
2014-07-27 10:04:32
阅读次数:
333
在C#中,赋值和简单的数字运算都不是原子型操作。在多线程环境下,会产生数据安全的问题。在多线程环境下,我们可以通过使用System.Threading.Interlocked类来实现原子型操作当个数据,使用它比使用Monitor类跟简单。Interlocked类主要方法方法作用CompareExchange()安全比较两..
分类:
其他好文 时间:
2014-07-26 15:34:55
阅读次数:
225
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 (ie...
分类:
其他好文 时间:
2014-07-26 14:30:11
阅读次数:
156
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 ...
分类:
其他好文 时间:
2014-07-26 01:23:26
阅读次数:
229
很多时候我们使用hibernate的session时,都是让session在 某一运行环境中保持其唯一。例如在同一线程内用同一个session,在同一方法内用同一session,这样我们就可以用session里面缓存好的数 据。但,我想说的不是缓存,且听我一一道来。 最近试用spring3.0.2....
分类:
数据库 时间:
2014-07-25 16:32:41
阅读次数:
248
一、ITL描述:ITL(Interested Transaction List)是Oracle数据块内部的一个组成部分,位于数据块头(block header),itl由xid,uba,flag,lck和scn/fsc组成,用来记录该块所有发生的事务,一个itl可以看作是一条事务记录。当然,如果这个...
分类:
数据库 时间:
2014-07-25 02:39:34
阅读次数:
417