Methods For Deadlock Prevention