結果 : how to avoid deadlock condition in java