Deadlock and safe state I read that system being in safe state doesn't guarantee that deadlock is not possible. 

Can someone give me an example where system is in safe state and deadlock is possible?
That is not possible, when a deadlock occurs, the system is in an UNSAFE state. A safe state wouldn't have any purpose if a deadlock could occur.