Preventing deadlock with timestamps: wound-wait scheme