This is the method used by most operating systems for handling deadlock.