摘要:
using System;using System.Threading;namespace APMResearch{ public delegate T Func<T>(); public class SimpleAsyncResult<T> :IAsyncResult { private volatile int _mIsCompleted; pri... 阅读全文
posted @ 2012-07-04 22:14
HelloWorld.Michael
阅读(150)
评论(0)
推荐(0)
摘要:
USE TSQLFundamentals2008Connection 1:BEGIN TRAN;UPDATE Production.ProductsSET unitprice=unitprice+1.0WHERE productid=2;为了更新这一行,会话必须先获得一个排它锁,更新成功后将释放这个排它锁Connection 2:SELECT productid,unitpriceFROM Production.ProductsWHERE productid=2为了读取数据,会话需要一个共享锁,但是这一行已经被其他会话持有的排它锁锁定,因而获取不到共享锁,所以这个会话会被阻塞Connectio 阅读全文
posted @ 2012-07-04 18:12
HelloWorld.Michael
阅读(324)
评论(0)
推荐(0)

浙公网安备 33010602011771号