How to use semaphores to test database locking scenarios

By Ed Wilson