Simulating Dead Locks


session A
update  t1 set c1=x

session  B
update t2 set c2=y

now exchange the sqls in both sessions.