Dead lock example