Methods For Handling Deadlock