Lock modes
•Locks can be for writing (W), reading (R) or other modes
•Standard conflict rules: two W locks on the same data item conflict, so do one W and one R lock on the same data
–However, two R locks do not conflict
•Thus W=exclusive, R=shared