結果 : explain the deadlock avoidance algorithm