Lockset Algorithm

Algorithm to detect data races

For each global memory location, keep a lockset

Note

We do not check specific locks for specific global variables
We check if any locks are being held