In Deadlock Avoidance / Banker's Algorithm
A safe state is a state in which there exists a sequence of execution.
An unsafe state is a state where there can't be any execution sequence.
A deadlocked state is when the availability of resources is 0.
Option B
Check this: https://gateoverflow.in/44404/isro-2013-58 (Everyone answered wrong here, except Dexter)