Trying to Improve in DeadLock