Here in this question all processes will be blocked and no one can proceed ..so this cause deadlock...in first scenario its busy wait, process is not blocked it's still executing but not doing any useful work so that creates livelock...
u can refer this
https://en.wikipedia.org/wiki/Deadlock